Mercurial > dive4elements > river
annotate gwt-client/src/test/java/test/SinfoFlowdepthRunner.java @ 9133:af73fdd96920
Title current/historical diff pair; limit on entries in diff'pair twin_panel
author | gernotbelger |
---|---|
date | Thu, 07 Jun 2018 11:41:10 +0200 |
parents | gwt-client/src/test/java/test/SinfoFlowdepthTest.java@dbb26bc81843 |
children | 48d87af1243e |
rev | line source |
---|---|
9127 | 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; | |
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.BerechnungsartenTester.CalcMode; | |
22 import test.BerechnungsartenTester.FilenameMapper; | |
23 import test.BerechnungsartenTester.River; | |
24 | |
25 /** | |
26 * @author Domenico Nardi Tironi | |
27 * | |
28 */ | |
9133
af73fdd96920
Title current/historical diff pair; limit on entries in diff'pair twin_panel
gernotbelger
parents:
9127
diff
changeset
|
29 public class SinfoFlowdepthRunner extends ModuleRunner { |
9127 | 30 |
31 private final boolean useTkh; | |
32 | |
9133
af73fdd96920
Title current/historical diff pair; limit on entries in diff'pair twin_panel
gernotbelger
parents:
9127
diff
changeset
|
33 public SinfoFlowdepthRunner(final String username, final String password, final CalcMode sinfoCalcFlowDepth, final FilenameMapper file, final double from, |
9127 | 34 final double to, final River river, final boolean useTkh) throws ConnectionException, ServerException { |
35 super(username, password, ModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, file, from, to, river); | |
36 this.useTkh = useTkh; | |
37 } | |
38 | |
39 @Override | |
40 public void runTest(final boolean exportToFile) throws ServerException, IOException { | |
41 /* Select River */ | |
42 super.selectRiver(); | |
43 | |
44 /* Select CalcMode */ | |
45 super.selectCalcMode(); | |
46 | |
47 /* Select Range */ | |
48 super.selectRange(); | |
49 | |
50 /* Select Fixpunkte */ | |
51 feedAndGo(super.getPairData(), 0); | |
52 | |
53 /* Select TRANSPORTKÖRPERHÖHHEN - einziger Unterschied zu FlowdepthMinMax */ | |
54 final String useTkhStr = String.valueOf(this.useTkh); | |
55 feedAndGo(new Data[] { new StringOptionsData("use_transport_bodies", "use_transport_bodies", | |
56 new DataItem[] { new DefaultDataItem(useTkhStr, useTkhStr, useTkhStr) }) }, 0); | |
57 | |
9133
af73fdd96920
Title current/historical diff pair; limit on entries in diff'pair twin_panel
gernotbelger
parents:
9127
diff
changeset
|
58 describeCollection(); |
9127 | 59 |
60 super.export(exportToFile); | |
61 } | |
62 } |