comparison gwt-client/src/test/java/test/sinfo/SinfoCollisionRunner.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 14
14 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; 15 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException;
15 import org.dive4elements.river.client.shared.exceptions.ServerException; 16 import org.dive4elements.river.client.shared.exceptions.ServerException;
16 import org.dive4elements.river.client.shared.model.Data; 17 import org.dive4elements.river.client.shared.model.Data;
30 31
31 private final int[] years; 32 private final int[] years;
32 private final String epochs; 33 private final String epochs;
33 private boolean isYears; // cannot be final because of the ternary expression 34 private boolean isYears; // cannot be final because of the ternary expression
34 35
35 public SinfoCollisionRunner(final double from, final double to, final River river, final int[] years, final String epochs) 36 public SinfoCollisionRunner(final File testFolder, final double from, final double to, final River river, final int[] years, final String epochs)
36 throws ConnectionException, ServerException { 37 throws ConnectionException, ServerException {
37 super(AbstractModuleRunner.Infotype.sinfo, CalcMode.sinfo_calc_collision, from, to, river); 38 super(testFolder, AbstractModuleRunner.Infotype.sinfo, CalcMode.sinfo_calc_collision, from, to, river);
38 this.years = years; 39 this.years = years;
39 this.epochs = epochs; 40 this.epochs = epochs;
40 this.isYears = (years != null) ? (this.isYears = true) : (this.isYears = false); 41 this.isYears = (years != null) ? (this.isYears = true) : (this.isYears = false);
41 } 42 }
42 43

http://dive4elements.wald.intevation.org