Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/RunnerCreatorHelper.java @ 9148:48d87af1243e
Unit testing flowdepthdevelopment added
author | gernotbelger |
---|---|
date | Tue, 12 Jun 2018 15:04:40 +0200 |
parents | af73fdd96920 |
children | 83aee0942eae |
comparison
equal
deleted
inserted
replaced
9147:28fe5e654495 | 9148:48d87af1243e |
---|---|
30 throw new UnsupportedOperationException(); | 30 throw new UnsupportedOperationException(); |
31 } | 31 } |
32 | 32 |
33 // HELPER-Methods: | 33 // HELPER-Methods: |
34 | 34 |
35 public final static ModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper helloWorldFile, final double from, final double to, | 35 public final static AbstractModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper helloWorldFile, final double from, final double to, |
36 final River beispielfluss) throws ConnectionException, ServerException { | 36 final River beispielfluss) throws ConnectionException, ServerException { |
37 // TODO: make recommendationPair to method parameter if needed | 37 // TODO: make recommendationPair to method parameter if needed |
38 final ModuleRunner proof = new SinfoFlowdepthMinMaxRunner(user, pw, CalcMode.sinfo_calc_flow_depth_minmax, helloWorldFile, from, to, beispielfluss); | 38 final SinfoFlowdepthMinMaxRunner proof = new SinfoFlowdepthMinMaxRunner(user, pw, CalcMode.sinfo_calc_flow_depth_minmax, helloWorldFile, from, to, |
39 beispielfluss); | |
39 proof.addRecommendationPair(new SimpleRecommendation("staticwqkms", "additionals-wstv-0-103", "sinfo_flowdepth_waterlevels"), | 40 proof.addRecommendationPair(new SimpleRecommendation("staticwqkms", "additionals-wstv-0-103", "sinfo_flowdepth_waterlevels"), |
40 new SimpleRecommendation("bedheight", "bedheight-single-36-2015-FP-2015_0-502", "sinfo_flowdepthminmax_heights")); | 41 new SimpleRecommendation("bedheight", "bedheight-single-36-2015-FP-2015_0-502", "sinfo_flowdepthminmax_heights")); |
41 | 42 |
42 return proof; | 43 return proof; |
43 } | 44 } |
44 | 45 |
45 public final static ModuleRunner createSinfoFlowdepthTest(final FilenameMapper file, final double from, final double to, final River river, | 46 public final static AbstractModuleRunner createSinfoFlowdepthTest(final FilenameMapper file, final double from, final double to, final River river, |
46 final boolean useTkh, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { | 47 final boolean useTkh, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { |
47 final ModuleRunner proof = new SinfoFlowdepthRunner(user, pw, CalcMode.sinfo_calc_flow_depth, file, from, to, river, useTkh); | 48 final SinfoFlowdepthRunner proof = new SinfoFlowdepthRunner(user, pw, CalcMode.sinfo_calc_flow_depth, file, from, to, river, useTkh); |
48 proof.addRecommendationPair(rec0, rec1); | 49 proof.addRecommendationPair(rec0, rec1); |
49 | 50 |
50 return proof; | 51 return proof; |
51 } | 52 } |
53 | |
54 public final static AbstractModuleRunner createSinfoFlowdepthDevelopmentTest(final FilenameMapper file, final double from, final double to, | |
55 final River river, final SimpleRecommendation rec0_curr, final SimpleRecommendation rec1_curr, final SimpleRecommendation rec0_hist, | |
56 final SimpleRecommendation rec1_hist) throws ConnectionException, ServerException { | |
57 final SinfoFlowdepthDevelopmentRunner proof = new SinfoFlowdepthDevelopmentRunner(user, pw, CalcMode.sinfo_calc_flow_depth_development, file, from, to, | |
58 river); | |
59 proof.addCurrentRecommendationPair(rec0_curr, rec1_curr); | |
60 proof.addHistoricalRecommendationPair(rec0_hist, rec1_hist); | |
61 return proof; | |
62 } | |
52 } | 63 } |