Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/BerechnungsartenTester.java @ 9417:46e3e23cca0b
sinfo.collision jUnit-Test
author | gernotbelger |
---|---|
date | Thu, 16 Aug 2018 17:32:05 +0200 |
parents | dba14da43f23 |
children | 9fe26f525ae3 |
comparison
equal
deleted
inserted
replaced
9416:05405292a7ca | 9417:46e3e23cca0b |
---|---|
2 | 2 |
3 import java.io.IOException; | 3 import java.io.IOException; |
4 | 4 |
5 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; | 5 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
6 import org.dive4elements.river.client.shared.exceptions.ServerException; | 6 import org.dive4elements.river.client.shared.exceptions.ServerException; |
7 import org.junit.Ignore; | |
8 import org.junit.Test; | 7 import org.junit.Test; |
9 | 8 |
10 /** | 9 /** |
11 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
12 */ | 11 */ |
13 | 12 |
14 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts | 13 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts |
15 // For running the JUunit test, the annotation @Ignore has to be disabled | 14 // For running the JUunit test, the annotation @Ignore has to be disabled |
16 @Ignore | 15 |
17 public class BerechnungsartenTester { | 16 public class BerechnungsartenTester { |
18 | 17 |
19 public static enum CalcMode { | 18 public static enum CalcMode { |
20 sinfo_calc_flow_depth, sinfo_calc_flow_depth_development, sinfo_calc_flow_depth_minmax, sinfo_calc_collision, sinfo_calc_transport_bodies_heights, sinfo_calc_flood_duration | 19 sinfo_calc_flow_depth, sinfo_calc_flow_depth_development, sinfo_calc_flow_depth_minmax, sinfo_calc_collision, sinfo_calc_transport_bodies_heights, sinfo_calc_flood_duration |
21 }; | 20 }; |
36 FTE_RHEIN_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_02.csv"), | 35 FTE_RHEIN_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_02.csv"), |
37 | 36 |
38 TKH_1_ELBE_FILE("/sinfo/flowdepthtkh/sinfo_tkh_01.csv"), // | 37 TKH_1_ELBE_FILE("/sinfo/flowdepthtkh/sinfo_tkh_01.csv"), // |
39 TKH_2_RHEIN_FILE("/sinfo/flowdepthtkh/sinfo_tkh_02.csv"), | 38 TKH_2_RHEIN_FILE("/sinfo/flowdepthtkh/sinfo_tkh_02.csv"), |
40 | 39 |
41 TKH_TKH_RHEIN_FILE("/sinfo/tkh/sinfo_tkh_export.csv"); | 40 TKH_TKH_RHEIN_FILE("/sinfo/tkh/sinfo_tkh_export.csv"), // |
42 | 41 |
42 COLLISION_RHEIN_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_export.csv"), // | |
43 COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_epoch_export.csv"); | |
43 private final String filename; | 44 private final String filename; |
44 | 45 |
45 FilenameMapper(final String filename) { | 46 FilenameMapper(final String filename) { |
46 this.filename = filename; | 47 this.filename = filename; |
47 } | 48 } |
155 public void testTKhTkh() throws ConnectionException, ServerException, IOException { | 156 public void testTKhTkh() throws ConnectionException, ServerException, IOException { |
156 RunnerCreatorHelper.createSinfoTkhTest(FilenameMapper.TKH_TKH_RHEIN_FILE, 0, 182.4, River.Beispielfluss, new double[] { 1059.446 }) | 157 RunnerCreatorHelper.createSinfoTkhTest(FilenameMapper.TKH_TKH_RHEIN_FILE, 0, 182.4, River.Beispielfluss, new double[] { 1059.446 }) |
157 .runTest(overrideFileExport() != null ? overrideFileExport() : true); | 158 .runTest(overrideFileExport() != null ? overrideFileExport() : true); |
158 } | 159 } |
159 | 160 |
161 @Test | |
162 public void testCollision() throws ConnectionException, ServerException, IOException { | |
163 RunnerCreatorHelper.createSinfoCollisionYearsTest(FilenameMapper.COLLISION_RHEIN_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, new int[] { 2006, 2008 }) | |
164 .runTest(overrideFileExport() != null ? overrideFileExport() : true); | |
165 } | |
166 | |
167 @Test | |
168 public void testCollisionEpochs() throws ConnectionException, ServerException, IOException { | |
169 RunnerCreatorHelper.createSinfoCollisionEpochsTest(FilenameMapper.COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, "2006,2008;") | |
170 .runTest(overrideFileExport() != null ? overrideFileExport() : true); | |
171 } | |
172 | |
160 } | 173 } |