Mercurial > dive4elements > river
diff gwt-client/src/test/java/test/BerechnungsartenTester.java @ 9418:9fe26f525ae3
sinfo floodduration jUnit test
author | gernotbelger |
---|---|
date | Thu, 16 Aug 2018 18:15:54 +0200 |
parents | 46e3e23cca0b |
children |
line wrap: on
line diff
--- a/gwt-client/src/test/java/test/BerechnungsartenTester.java Thu Aug 16 17:32:05 2018 +0200 +++ b/gwt-client/src/test/java/test/BerechnungsartenTester.java Thu Aug 16 18:15:54 2018 +0200 @@ -4,15 +4,18 @@ import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; import org.dive4elements.river.client.shared.exceptions.ServerException; +import org.junit.Ignore; import org.junit.Test; +import test.SinfoFloodDurationRiversideChoice.RiversideChoiceKey; + /** * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ // 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 { @@ -40,7 +43,9 @@ 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"); + COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_epoch_export.csv"), // + + FLOOD_DURATION_HELLO_WORLD_FILE("/sinfo/floodduration/sinfo_floodduration_export.csv"); private final String filename; FilenameMapper(final String filename) { @@ -170,4 +175,13 @@ .runTest(overrideFileExport() != null ? overrideFileExport() : true); } + @Test + public void testFloodDuration() throws ConnectionException, ServerException, IOException { + RunnerCreatorHelper + .createSinfoFloodDurationTest(FilenameMapper.FLOOD_DURATION_HELLO_WORLD_FILE, 0, 182.4, River.Beispielfluss, new double[] { 2091.011 }, true, + RiversideChoiceKey.BOTH) + + .runTest(overrideFileExport() != null ? overrideFileExport() : true); + } + } \ No newline at end of file