Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/SinfoFlowdepthTest.java @ 9127:dbb26bc81843
Testing
author | gernotbelger |
---|---|
date | Wed, 06 Jun 2018 13:05:57 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9126:7235a610558a | 9127:dbb26bc81843 |
---|---|
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 */ | |
29 public class SinfoFlowdepthTest extends ModuleRunner { | |
30 | |
31 private final boolean useTkh; | |
32 | |
33 public SinfoFlowdepthTest(final String username, final String password, final CalcMode sinfoCalcFlowDepth, final FilenameMapper file, final double from, | |
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 | |
58 describeCollection(); // wichtig, damit die Facets erzeugt werden | |
59 | |
60 super.export(exportToFile); | |
61 } | |
62 } |