Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/uinfo/UinfoSalixRunner.java @ 9567:86e522bc7f36
jUnit-Tests completed
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 13:21:57 +0100 |
parents | e75afd693f78 |
children | 531a60b7af95 |
comparison
equal
deleted
inserted
replaced
9566:9826b465b751 | 9567:86e522bc7f36 |
---|---|
18 import org.dive4elements.river.client.shared.model.DefaultDataItem; | 18 import org.dive4elements.river.client.shared.model.DefaultDataItem; |
19 import org.dive4elements.river.client.shared.model.StringOptionsData; | 19 import org.dive4elements.river.client.shared.model.StringOptionsData; |
20 | 20 |
21 import test.AbstractBerechnungsartenTester.River; | 21 import test.AbstractBerechnungsartenTester.River; |
22 import test.AbstractModuleRunner; | 22 import test.AbstractModuleRunner; |
23 import test.IFilenameMapper; | |
24 import test.uinfo.UInfoBerechnungsartenTester.CalcMode; | 23 import test.uinfo.UInfoBerechnungsartenTester.CalcMode; |
25 | 24 |
26 /** | 25 /** |
27 * @author Domenico Nardi Tironi | 26 * @author Domenico Nardi Tironi |
28 * | 27 * |
29 */ | 28 */ |
30 class UinfoSalixRunner extends AbstractModuleRunner { | 29 class UinfoSalixRunner extends AbstractModuleRunner { |
31 | |
32 private final String scenarioChoice; | 30 private final String scenarioChoice; |
33 private boolean isUseScenario; | 31 private boolean isUseScenario; |
34 | 32 |
35 public UinfoSalixRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice) | 33 public UinfoSalixRunner(final double from, final double to, final River river, final String scenarioChoice) throws ConnectionException, ServerException { |
36 throws ConnectionException, ServerException { | 34 super(AbstractModuleRunner.Infotype.uinfo, CalcMode.uinfo_salix_line, from, to, river); |
37 super(AbstractModuleRunner.Infotype.uinfo, CalcMode.uinfo_salix_line, file, from, to, river); | |
38 this.scenarioChoice = scenarioChoice; | 35 this.scenarioChoice = scenarioChoice; |
39 this.isUseScenario = (scenarioChoice != null) ? (this.isUseScenario = true) : (this.isUseScenario = false); | 36 this.isUseScenario = (scenarioChoice != null) ? (this.isUseScenario = true) : (this.isUseScenario = false); |
40 } | 37 } |
41 | 38 |
42 @Override | 39 @Override |
43 public void runTest(final boolean exportToFile) throws ServerException, IOException { | 40 public void runTest() throws ServerException, IOException { |
44 /* Select River */ | 41 /* Select River */ |
45 super.selectRiver(); | 42 super.selectRiver(); |
46 | 43 |
47 /* Select ICalcMode */ | 44 /* Select ICalcMode */ |
48 super.selectCalcMode(); | 45 super.selectCalcMode(); |
64 makeScenario(); | 61 makeScenario(); |
65 } | 62 } |
66 | 63 |
67 describeCollection(); | 64 describeCollection(); |
68 | 65 |
69 super.export(exportToFile); | 66 super.runTests(); |
70 } | 67 } |
71 | 68 |
72 protected void makeScenario() throws ConnectionException, ServerException { | 69 protected void makeScenario() throws ConnectionException, ServerException { |
73 // Override in subs | 70 // Override in subs |
74 } | 71 } |