comparison gwt-client/src/test/java/test/sinfo/SinfoFlowdepthDevelopmentRunner.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 *
29 final class SinfoFlowdepthDevelopmentRunner extends AbstractModuleRunner { 28 final class SinfoFlowdepthDevelopmentRunner extends AbstractModuleRunner {
30 29
31 private final List<String> pairIdsCurrent = new ArrayList<String>(); 30 private final List<String> pairIdsCurrent = new ArrayList<String>();
32 private final List<String> pairIdsHistorical = new ArrayList<String>(); 31 private final List<String> pairIdsHistorical = new ArrayList<String>();
33 32
34 public SinfoFlowdepthDevelopmentRunner(final ICalcMode sinfoCalcFlowDepth, final IFilenameMapper file, final double from, final double to, 33 public SinfoFlowdepthDevelopmentRunner(final ICalcMode sinfoCalcFlowDepth, final double from, final double to, final River river)
35 final River river) throws ConnectionException, ServerException { 34 throws ConnectionException, ServerException {
36 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, file, from, to, river); 35 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, from, to, river);
37 36
38 } 37 }
39 38
40 public void addCurrentRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { 39 public void addCurrentRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException {
41 this.pairIdsCurrent.add(super.getRecommendationPairString(rec1, rec2)); 40 this.pairIdsCurrent.add(super.getRecommendationPairString(rec1, rec2));
44 public void addHistoricalRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { 43 public void addHistoricalRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException {
45 this.pairIdsHistorical.add(super.getRecommendationPairString(rec1, rec2)); 44 this.pairIdsHistorical.add(super.getRecommendationPairString(rec1, rec2));
46 } 45 }
47 46
48 @Override 47 @Override
49 public void runTest(final boolean exportToFile) throws ServerException, IOException { 48 public void runTest() throws ServerException, IOException {
50 /* Select River */ 49 /* Select River */
51 super.selectRiver(); 50 super.selectRiver();
52 51
53 /* Select ICalcMode */ 52 /* Select ICalcMode */
54 super.selectCalcMode(); 53 super.selectCalcMode();
62 /* Select historical Fixpunkte */ 61 /* Select historical Fixpunkte */
63 feedAndGo(super.extractPairData(this.pairIdsHistorical, "diffid_historical"), 0); 62 feedAndGo(super.extractPairData(this.pairIdsHistorical, "diffid_historical"), 0);
64 63
65 describeCollection(); 64 describeCollection();
66 65
67 super.export(exportToFile); 66 super.runTests();
68 } 67 }
69 } 68 }

http://dive4elements.wald.intevation.org