Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoFlowdepthMinMaxRunner.java @ 9567:86e522bc7f36
jUnit-Tests completed
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 13:21:57 +0100 |
parents | e567fac95e3d |
children | 531a60b7af95 |
comparison
equal
deleted
inserted
replaced
9566:9826b465b751 | 9567:86e522bc7f36 |
---|---|
17 import org.dive4elements.river.client.shared.exceptions.ServerException; | 17 import org.dive4elements.river.client.shared.exceptions.ServerException; |
18 | 18 |
19 import test.AbstractBerechnungsartenTester.River; | 19 import test.AbstractBerechnungsartenTester.River; |
20 import test.AbstractModuleRunner; | 20 import test.AbstractModuleRunner; |
21 import test.ICalcMode; | 21 import test.ICalcMode; |
22 import test.IFilenameMapper; | |
23 import test.SimpleRecommendation; | 22 import test.SimpleRecommendation; |
24 | 23 |
25 /** | 24 /** |
26 * @author Domenico Nardi Tironi | 25 * @author Domenico Nardi Tironi |
27 * | 26 * |
28 */ | 27 */ |
29 final class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { | 28 final class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { |
30 | 29 |
31 private final List<String> pairIds = new ArrayList<String>(); | 30 private final List<String> pairIds = new ArrayList<String>(); |
32 | 31 |
33 public SinfoFlowdepthMinMaxRunner(final ICalcMode sinfoCalcFlowDepthMinmax, final IFilenameMapper helloWorldFile, final double from, final double to, | 32 public SinfoFlowdepthMinMaxRunner(final ICalcMode sinfoCalcFlowDepthMinmax, final double from, final double to, final River beispielfluss) |
34 final River beispielfluss) throws ConnectionException, ServerException { | 33 throws ConnectionException, ServerException { |
35 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, helloWorldFile, from, to, beispielfluss); | 34 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, from, to, beispielfluss); |
36 } | 35 } |
37 | 36 |
38 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { | 37 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { |
39 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); | 38 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); |
40 } | 39 } |
41 | 40 |
42 @Override | 41 @Override |
43 public void runTest(final boolean exportToFile) throws ServerException, IOException { | 42 public void runTest() throws ServerException, IOException { |
44 | 43 |
45 /* Select River */ | 44 /* Select River */ |
46 super.selectRiver(); | 45 super.selectRiver(); |
47 | 46 |
48 /* Select calcmode */ | 47 /* Select calcmode */ |
56 | 55 |
57 // Describe collection | 56 // Describe collection |
58 describeCollection(); // wichtig, damit die Facets erzeugt werden | 57 describeCollection(); // wichtig, damit die Facets erzeugt werden |
59 | 58 |
60 // /* Export calculation */ | 59 // /* Export calculation */ |
61 super.export(exportToFile); | 60 super.runTests(); |
62 } | 61 } |
63 } | 62 } |