Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoFlowdepthRunner.java @ 9570:531a60b7af95
failed tests will be saved to disk
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 17:15:30 +0100 |
parents | 86e522bc7f36 |
children |
comparison
equal
deleted
inserted
replaced
9569:9f83ebf67c92 | 9570:531a60b7af95 |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package test.sinfo; | 10 package test.sinfo; |
11 | 11 |
12 import java.io.File; | |
12 import java.io.IOException; | 13 import java.io.IOException; |
13 import java.util.ArrayList; | 14 import java.util.ArrayList; |
14 | 15 |
15 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | 16 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
16 import org.dive4elements.river.client.shared.exceptions.ServerException; | 17 import org.dive4elements.river.client.shared.exceptions.ServerException; |
31 final class SinfoFlowdepthRunner extends AbstractModuleRunner { | 32 final class SinfoFlowdepthRunner extends AbstractModuleRunner { |
32 | 33 |
33 private final boolean useTkh; | 34 private final boolean useTkh; |
34 private final ArrayList<String> pairIds = new ArrayList<String>(); | 35 private final ArrayList<String> pairIds = new ArrayList<String>(); |
35 | 36 |
36 public SinfoFlowdepthRunner(final ICalcMode sinfoCalcFlowDepth, final double from, final double to, final River river, final boolean useTkh) | 37 public SinfoFlowdepthRunner(final File testFolder, final ICalcMode sinfoCalcFlowDepth, final double from, final double to, final River river, |
37 throws ConnectionException, ServerException { | 38 final boolean useTkh) throws ConnectionException, ServerException { |
38 super(AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, from, to, river); | 39 super(testFolder, AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, from, to, river); |
39 this.useTkh = useTkh; | 40 this.useTkh = useTkh; |
40 } | 41 } |
41 | 42 |
42 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { | 43 public void addRecommendationPair(final SimpleRecommendation rec1, final SimpleRecommendation rec2) throws ConnectionException, ServerException { |
43 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); | 44 this.pairIds.add(super.getRecommendationPairString(rec1, rec2)); |