Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/sinfo/SinfoCollisionRunner.java @ 9567:86e522bc7f36
jUnit-Tests completed
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 13:21:57 +0100 |
parents | e567fac95e3d |
children | 531a60b7af95 |
comparison
equal
deleted
inserted
replaced
9566:9826b465b751 | 9567:86e522bc7f36 |
---|---|
18 import org.dive4elements.river.client.shared.model.DefaultDataItem; | 18 import org.dive4elements.river.client.shared.model.DefaultDataItem; |
19 import org.dive4elements.river.client.shared.model.StringOptionsData; | 19 import org.dive4elements.river.client.shared.model.StringOptionsData; |
20 | 20 |
21 import test.AbstractBerechnungsartenTester.River; | 21 import test.AbstractBerechnungsartenTester.River; |
22 import test.AbstractModuleRunner; | 22 import test.AbstractModuleRunner; |
23 import test.IFilenameMapper; | |
24 import test.sinfo.SinfoBerechnungsartenTester.CalcMode; | 23 import test.sinfo.SinfoBerechnungsartenTester.CalcMode; |
25 | 24 |
26 /** | 25 /** |
27 * @author Domenico Nardi Tironi | 26 * @author Domenico Nardi Tironi |
28 * | 27 * |
31 | 30 |
32 private final int[] years; | 31 private final int[] years; |
33 private final String epochs; | 32 private final String epochs; |
34 private boolean isYears; // cannot be final because of the ternary expression | 33 private boolean isYears; // cannot be final because of the ternary expression |
35 | 34 |
36 public SinfoCollisionRunner(final IFilenameMapper file, final double from, final double to, final River river, final int[] years, final String epochs) | 35 public SinfoCollisionRunner(final double from, final double to, final River river, final int[] years, final String epochs) |
37 throws ConnectionException, ServerException { | 36 throws ConnectionException, ServerException { |
38 super(AbstractModuleRunner.Infotype.sinfo, CalcMode.sinfo_calc_collision, file, from, to, river); | 37 super(AbstractModuleRunner.Infotype.sinfo, CalcMode.sinfo_calc_collision, from, to, river); |
39 this.years = years; | 38 this.years = years; |
40 this.epochs = epochs; | 39 this.epochs = epochs; |
41 this.isYears = (years != null) ? (this.isYears = true) : (this.isYears = false); | 40 this.isYears = (years != null) ? (this.isYears = true) : (this.isYears = false); |
42 } | 41 } |
43 | 42 |
44 @Override | 43 @Override |
45 public void runTest(final boolean exportToFile) throws ServerException, IOException { | 44 public void runTest() throws ServerException, IOException { |
46 /* Select River */ | 45 /* Select River */ |
47 super.selectRiver(); | 46 super.selectRiver(); |
48 | 47 |
49 /* Select ICalcMode */ | 48 /* Select ICalcMode */ |
50 super.selectCalcMode(); | 49 super.selectCalcMode(); |
73 final Data data = new StringOptionsData("epochs", "epochs", new DataItem[] { new DefaultDataItem("epochs", "epochs", this.epochs) }); | 72 final Data data = new StringOptionsData("epochs", "epochs", new DataItem[] { new DefaultDataItem("epochs", "epochs", this.epochs) }); |
74 feedAndGo(new Data[] { data }, 0); | 73 feedAndGo(new Data[] { data }, 0); |
75 } | 74 } |
76 describeCollection(); | 75 describeCollection(); |
77 | 76 |
78 super.export(exportToFile); | 77 super.runTests(); |
79 } | 78 } |
80 } | 79 } |