Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoFlowdepthRunner.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 |
---|---|
20 import org.dive4elements.river.client.shared.model.StringOptionsData; | 20 import org.dive4elements.river.client.shared.model.StringOptionsData; |
21 | 21 |
22 import test.AbstractBerechnungsartenTester.River; | 22 import test.AbstractBerechnungsartenTester.River; |
23 import test.AbstractModuleRunner; | 23 import test.AbstractModuleRunner; |
24 import test.ICalcMode; | 24 import test.ICalcMode; |
25 import test.IFilenameMapper; | |
26 import test.SimpleRecommendation; | 25 import test.SimpleRecommendation; |
27 | 26 |
28 /** | 27 /** |
29 * @author Domenico Nardi Tironi | 28 * @author Domenico Nardi Tironi |
30 * | 29 * |
32 final class SinfoFlowdepthRunner extends AbstractModuleRunner { | 31 final class SinfoFlowdepthRunner extends AbstractModuleRunner { |
33 | 32 |
34 private final boolean useTkh; | 33 private final boolean useTkh; |
35 private final ArrayList<String> pairIds = new ArrayList<String>(); | 34 private final ArrayList<String> pairIds = new ArrayList<String>(); |
36 | 35 |
37 public SinfoFlowdepthRunner(final ICalcMode sinfoCalcFlowDepth, final IFilenameMapper file, final double from, final double to, final River river, | 36 public SinfoFlowdepthRunner(final ICalcMode sinfoCalcFlowDepth, final double from, final double to, final River river, final boolean useTkh) |
38 final boolean useTkh) throws ConnectionException, ServerException { | 37 throws ConnectionException, ServerException { |
39 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, file, from, to, river); | 38 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, from, to, river); |
40 this.useTkh = useTkh; | 39 this.useTkh = useTkh; |
41 } | 40 } |
42 | 41 |
43 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { | 42 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { |
44 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); | 43 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); |
45 } | 44 } |
46 | 45 |
47 @Override | 46 @Override |
48 public void runTest(final boolean exportToFile) throws ServerException, IOException { | 47 public void runTest() throws ServerException, IOException { |
49 /* Select River */ | 48 /* Select River */ |
50 super.selectRiver(); | 49 super.selectRiver(); |
51 | 50 |
52 /* Select ICalcMode */ | 51 /* Select ICalcMode */ |
53 super.selectCalcMode(); | 52 super.selectCalcMode(); |
63 feedAndGo(new Data[] { new StringOptionsData("use_transport_bodies", "use_transport_bodies", | 62 feedAndGo(new Data[] { new StringOptionsData("use_transport_bodies", "use_transport_bodies", |
64 new DataItem[] { new DefaultDataItem(useTkhStr, useTkhStr, useTkhStr) }) }, 0); | 63 new DataItem[] { new DefaultDataItem(useTkhStr, useTkhStr, useTkhStr) }) }, 0); |
65 | 64 |
66 describeCollection(); | 65 describeCollection(); |
67 | 66 |
68 super.export(exportToFile); | 67 super.runTests(); |
69 } | 68 } |
70 } | 69 } |