Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/RunnerCreatorHelper.java @ 9228:dba14da43f23
JUnit-Tests finish
author | gernotbelger |
---|---|
date | Thu, 05 Jul 2018 13:46:36 +0200 |
parents | 83aee0942eae |
children | 46e3e23cca0b |
comparison
equal
deleted
inserted
replaced
9227:84397da33d17 | 9228:dba14da43f23 |
---|---|
30 throw new UnsupportedOperationException(); | 30 throw new UnsupportedOperationException(); |
31 } | 31 } |
32 | 32 |
33 // HELPER-Methods: | 33 // HELPER-Methods: |
34 | 34 |
35 public final static AbstractModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper helloWorldFile, final double from, final double to, | 35 public final static AbstractModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper file, final double from, final double to, |
36 final River beispielfluss) throws ConnectionException, ServerException { | 36 final River beispielfluss, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { |
37 // TODO: make recommendationPair to method parameter if needed | 37 // TODO: make recommendationPair to method parameter if needed |
38 final SinfoFlowdepthMinMaxRunner proof = new SinfoFlowdepthMinMaxRunner(user, pw, CalcMode.sinfo_calc_flow_depth_minmax, helloWorldFile, from, to, | 38 final SinfoFlowdepthMinMaxRunner proof = new SinfoFlowdepthMinMaxRunner(user, pw, CalcMode.sinfo_calc_flow_depth_minmax, file, from, to, beispielfluss); |
39 beispielfluss); | 39 proof.addRecommendationPair(rec0, rec1); |
40 proof.addRecommendationPair(new SimpleRecommendation("staticwqkms", "additionals-wstv-0-103", "sinfo_flowdepth_waterlevels"), | |
41 new SimpleRecommendation("bedheight", "bedheight-single-36-2015-FP-2015_0-502", "sinfo_flowdepthminmax_heights")); | |
42 | 40 |
41 return proof; | |
42 } | |
43 | |
44 public static AbstractModuleRunner createSinfoFlowdepthMinMaxTest(final FilenameMapper file, final int from, final int to, final River river, | |
45 final SimpleRecommendation simpleRecommendation0, final SimpleRecommendation simpleRecommendation1, | |
46 final SimpleRecommendation simpleRecommendation2, final SimpleRecommendation simpleRecommendation3) throws ConnectionException, ServerException { | |
47 final SinfoFlowdepthMinMaxRunner proof = (SinfoFlowdepthMinMaxRunner) createSinfoFlowdepthMinMaxTest(file, from, to, river, simpleRecommendation0, | |
48 simpleRecommendation1); | |
49 proof.addRecommendationPair(simpleRecommendation2, simpleRecommendation3); | |
43 return proof; | 50 return proof; |
44 } | 51 } |
45 | 52 |
46 public final static AbstractModuleRunner createSinfoFlowdepthTest(final FilenameMapper file, final double from, final double to, final River river, | 53 public final static AbstractModuleRunner createSinfoFlowdepthTest(final FilenameMapper file, final double from, final double to, final River river, |
47 final boolean useTkh, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { | 54 final boolean useTkh, final SimpleRecommendation rec0, final SimpleRecommendation rec1) throws ConnectionException, ServerException { |