Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoTkhRunner.java @ 9422:e567fac95e3d
uinfo salix no scenario jUnit test
author | gernotbelger |
---|---|
date | Fri, 17 Aug 2018 11:43:42 +0200 |
parents | |
children | 86e522bc7f36 |
comparison
equal
deleted
inserted
replaced
9420:2c8ba17b807e | 9422:e567fac95e3d |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package test.sinfo; | |
11 | |
12 import java.io.IOException; | |
13 | |
14 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | |
15 import org.dive4elements.river.client.shared.exceptions.ServerException; | |
16 import org.dive4elements.river.client.shared.model.Data; | |
17 import org.dive4elements.river.client.shared.model.DataItem; | |
18 import org.dive4elements.river.client.shared.model.DefaultDataItem; | |
19 import org.dive4elements.river.client.shared.model.StringOptionsData; | |
20 | |
21 import test.AbstractBerechnungsartenTester.River; | |
22 import test.AbstractModuleRunner; | |
23 import test.ICalcMode; | |
24 import test.IFilenameMapper; | |
25 import test.WQInputHelper; | |
26 | |
27 /** | |
28 * @author Domenico Nardi Tironi | |
29 * | |
30 */ | |
31 final class SinfoTkhRunner extends AbstractModuleRunner { | |
32 | |
33 private final double[] wasserspiegellage; | |
34 | |
35 public SinfoTkhRunner(final ICalcMode sinfoCalcFlowDepth, final IFilenameMapper file, final double from, final double to, final River river, | |
36 final double[] wasserspiegellage) throws ConnectionException, ServerException { | |
37 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, file, from, to, river); | |
38 this.wasserspiegellage = wasserspiegellage; | |
39 } | |
40 | |
41 @Override | |
42 public void runTest(final boolean exportToFile) throws ServerException, IOException { | |
43 /* Select River */ | |
44 super.selectRiver(); | |
45 | |
46 /* Select ICalcMode */ | |
47 super.selectCalcMode(); | |
48 | |
49 super.feed(new Data[] { | |
50 new StringOptionsData("ld_mode", "ld_mode", new DataItem[] { new DefaultDataItem("distance_only", "distance_only", "distance_only") }) }); // leider | |
51 // wichtig | |
52 // :-( | |
53 | |
54 /* Select Range */ | |
55 super.selectRange(); | |
56 | |
57 final WQInputHelper helper = new WQInputHelper(this.wasserspiegellage); | |
58 super.feedAndGo(helper.getDataforFeed(), // | |
59 0);// reachable state index | |
60 | |
61 describeCollection(); | |
62 | |
63 super.export(exportToFile); | |
64 } | |
65 } |