Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/SinfoFlowdepthMinMaxRunner.java @ 9148:48d87af1243e
Unit testing flowdepthdevelopment added
author | gernotbelger |
---|---|
date | Tue, 12 Jun 2018 15:04:40 +0200 |
parents | af73fdd96920 |
children |
comparison
equal
deleted
inserted
replaced
9147:28fe5e654495 | 9148:48d87af1243e |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package test; | 10 package test; |
11 | 11 |
12 import java.io.IOException; | 12 import java.io.IOException; |
13 import java.util.ArrayList; | |
14 import java.util.List; | |
13 | 15 |
14 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | 16 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
15 import org.dive4elements.river.client.shared.exceptions.ServerException; | 17 import org.dive4elements.river.client.shared.exceptions.ServerException; |
16 | 18 |
17 import test.BerechnungsartenTester.CalcMode; | 19 import test.BerechnungsartenTester.CalcMode; |
20 | 22 |
21 /** | 23 /** |
22 * @author Domenico Nardi Tironi | 24 * @author Domenico Nardi Tironi |
23 * | 25 * |
24 */ | 26 */ |
25 public class SinfoFlowdepthMinMaxRunner extends ModuleRunner { | 27 public class SinfoFlowdepthMinMaxRunner extends AbstractModuleRunner { |
28 | |
29 private final List<String> pairIds = new ArrayList<String>(); | |
26 | 30 |
27 public SinfoFlowdepthMinMaxRunner(final String username, final String password, final CalcMode sinfoCalcFlowDepthMinmax, | 31 public SinfoFlowdepthMinMaxRunner(final String username, final String password, final CalcMode sinfoCalcFlowDepthMinmax, |
28 final FilenameMapper helloWorldFile, final double from, final double to, final River beispielfluss) throws ConnectionException, ServerException { | 32 final FilenameMapper helloWorldFile, final double from, final double to, final River beispielfluss) throws ConnectionException, ServerException { |
29 super(username, password, ModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, helloWorldFile, from, to, beispielfluss); | 33 super(username, password, AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepthMinmax, helloWorldFile, from, to, beispielfluss); |
34 } | |
35 | |
36 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { | |
37 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); | |
30 } | 38 } |
31 | 39 |
32 @Override | 40 @Override |
33 public void runTest(final boolean exportToFile) throws ServerException, IOException { | 41 public void runTest(final boolean exportToFile) throws ServerException, IOException { |
34 | 42 |
40 | 48 |
41 /* Select Range */ | 49 /* Select Range */ |
42 super.selectRange(); | 50 super.selectRange(); |
43 | 51 |
44 /* Select Fixpunkte */ | 52 /* Select Fixpunkte */ |
45 feedAndGo(super.getPairData(), 0); | 53 feedAndGo(extractPairData(this.pairIds, "diffids"), 0); |
46 | 54 |
47 // Describe collection | 55 // Describe collection |
48 describeCollection(); // wichtig, damit die Facets erzeugt werden | 56 describeCollection(); // wichtig, damit die Facets erzeugt werden |
49 | 57 |
50 // /* Export calculation */ | 58 // /* Export calculation */ |