Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoFlowdepthMinMaxRunner.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 import java.util.ArrayList; | |
14 import java.util.List; | |
15 | |
16 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | |
17 import org.dive4elements.river.client.shared.exceptions.ServerException; | |
18 | |
19 import test.AbstractBerechnungsartenTester.River; | |
20 import test.AbstractModuleRunner; | |
21 import test.ICalcMode; | |
22 import test.IFilenameMapper; | |
23 import test.SimpleRecommendation; | |
24 | |
25 /** | |
26 * @author Domenico Nardi Tironi | |
27 * | |
28 */ | |
29 final class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { | |
30 | |
31 private final List<String> pairIds = new ArrayList<String>(); | |
32 | |
33 public SinfoFlowdepthMinMaxRunner(final ICalcMode sinfoCalcFlowDepthMinmax, final IFilenameMapper helloWorldFile, final double from, final double to, | |
34 final River beispielfluss) throws ConnectionException, ServerException { | |
35 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, helloWorldFile, from, to, beispielfluss); | |
36 } | |
37 | |
38 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { | |
39 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); | |
40 } | |
41 | |
42 @Override | |
43 public void runTest(final boolean exportToFile) throws ServerException, IOException { | |
44 | |
45 /* Select River */ | |
46 super.selectRiver(); | |
47 | |
48 /* Select calcmode */ | |
49 super.selectCalcMode(); | |
50 | |
51 /* Select Range */ | |
52 super.selectRange(); | |
53 | |
54 /* Select Fixpunkte */ | |
55 feedAndGo(extractPairData(this.pairIds, "diffids"), 0); | |
56 | |
57 // Describe collection | |
58 describeCollection(); // wichtig, damit die Facets erzeugt werden | |
59 | |
60 // /* Export calculation */ | |
61 super.export(exportToFile); | |
62 } | |
63 } |