Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/gwt-client/src/test/java/test/BerechnungsartenTester.java Thu Aug 16 16:28:03 2018 +0200 +++ b/gwt-client/src/test/java/test/BerechnungsartenTester.java Thu Aug 16 17:32:05 2018 +0200 @@ -4,7 +4,6 @@ import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; import org.dive4elements.river.client.shared.exceptions.ServerException; -import org.junit.Ignore; import org.junit.Test; /** @@ -13,7 +12,7 @@ // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts // For running the JUunit test, the annotation @Ignore has to be disabled -@Ignore + public class BerechnungsartenTester { public static enum CalcMode { @@ -38,8 +37,10 @@ TKH_1_ELBE_FILE("/sinfo/flowdepthtkh/sinfo_tkh_01.csv"), // TKH_2_RHEIN_FILE("/sinfo/flowdepthtkh/sinfo_tkh_02.csv"), - TKH_TKH_RHEIN_FILE("/sinfo/tkh/sinfo_tkh_export.csv"); + TKH_TKH_RHEIN_FILE("/sinfo/tkh/sinfo_tkh_export.csv"), // + COLLISION_RHEIN_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_export.csv"), // + COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_epoch_export.csv"); private final String filename; FilenameMapper(final String filename) { @@ -157,4 +158,16 @@ .runTest(overrideFileExport() != null ? overrideFileExport() : true); } + @Test + public void testCollision() throws ConnectionException, ServerException, IOException { + RunnerCreatorHelper.createSinfoCollisionYearsTest(FilenameMapper.COLLISION_RHEIN_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, new int[] { 2006, 2008 }) + .runTest(overrideFileExport() != null ? overrideFileExport() : true); + } + + @Test + public void testCollisionEpochs() throws ConnectionException, ServerException, IOException { + RunnerCreatorHelper.createSinfoCollisionEpochsTest(FilenameMapper.COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, "2006,2008;") + .runTest(overrideFileExport() != null ? overrideFileExport() : true); + } + } \ No newline at end of file