Mercurial > dive4elements > river
diff gwt-client/src/test/java/test/BerechnungsartenTester.java @ 9148:48d87af1243e
Unit testing flowdepthdevelopment added
author | gernotbelger |
---|---|
date | Tue, 12 Jun 2018 15:04:40 +0200 |
parents | af73fdd96920 |
children | 83aee0942eae |
line wrap: on
line diff
--- a/gwt-client/src/test/java/test/BerechnungsartenTester.java Tue Jun 12 10:40:33 2018 +0200 +++ b/gwt-client/src/test/java/test/BerechnungsartenTester.java Tue Jun 12 15:04:40 2018 +0200 @@ -28,7 +28,7 @@ }; public static enum River { - Beispielfluss, Rhein + Beispielfluss, Rhein, Elbe }; public static enum FilenameMapper { @@ -36,8 +36,11 @@ HELLO_WORLD_FILE("/sinfo/flowdepthminmax/sinfo_flowdepthminmax_export.csv"), // // Schäfer-Tests: - RHEIN_1_FILE("/sinfo/flowdepth/sinfo_ft_01.csv"), // - RHEIN_3_FILE("/sinfo/flowdepth/sinfo_ft_03.csv"); // + FT_RHEIN_1_FILE("/sinfo/flowdepth/sinfo_ft_01.csv"), // + FT_RHEIN_3_FILE("/sinfo/flowdepth/sinfo_ft_03.csv"), // + + FTE_ELBE_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_01.csv"), // + FTE_RHEIN_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_02.csv"); private final String filename; @@ -54,6 +57,7 @@ return null; } + /* FLOWDEPTH MIN MAX */ @Test public void testHelloWorld() throws ServerException, IOException { @@ -62,11 +66,12 @@ .runTest(overrideFileExport() != null ? overrideFileExport() : true); } + /* FLOWDEPTH */ @Test - public void testRhein1() throws ConnectionException, ServerException, IOException { + public void testRhein1FT() throws ConnectionException, ServerException, IOException { RunnerCreatorHelper - .createSinfoFlowdepthTest(FilenameMapper.RHEIN_1_FILE, 350, 380, River.Rhein, false, + .createSinfoFlowdepthTest(FilenameMapper.FT_RHEIN_1_FILE, 350, 380, River.Rhein, false, new SimpleRecommendation("staticwqkms", "additionals-wstv-0-415", "longitudinal_section"), new SimpleRecommendation("bedheight", "bedheight-soundings-79-2004-DGM-2004_Epoche_NHN", "longitudinal_section")) .runTest(overrideFileExport() != null ? overrideFileExport() : true); @@ -74,12 +79,48 @@ } @Test - public void testRhein3() throws ConnectionException, ServerException, IOException { + public void testRhein3FT() throws ConnectionException, ServerException, IOException { RunnerCreatorHelper - .createSinfoFlowdepthTest(FilenameMapper.RHEIN_3_FILE, 655, 675, River.Rhein, true, + .createSinfoFlowdepthTest(FilenameMapper.FT_RHEIN_3_FILE, 655, 675, River.Rhein, true, new SimpleRecommendation("staticwqkms", "fixations-wstv-0-323", "longitudinal_section"), new SimpleRecommendation("bedheight", "bedheight-soundings-92-2004-NIEDERRHEIN_QP-2004_Epoche_NHN", "longitudinal_section")) .runTest(overrideFileExport() != null ? overrideFileExport() : true); } + /* FLOWDEPTH DEVELOPMENT */ + + @Test + public void testElbeFTE() throws ConnectionException, ServerException, IOException { + RunnerCreatorHelper.createSinfoFlowdepthDevelopmentTest(FilenameMapper.FTE_ELBE_FILE, 210, 230, River.Elbe, + // current + new SimpleRecommendation("staticwqkms", "fixations-wstv-0-196", "longitudinal_section", "05.05.2008"), // sicher + new SimpleRecommendation("bedheight", "bedheight-soundings-66-2008-FP-QP-2008", + // "bedheight-single-66-2008-MW-FP-QP-2008", + "longitudinal_section"), + + // historical + new SimpleRecommendation("staticwqkms", "fixations-wstv-0-186", "longitudinal_section", "18.03.1997"), // sicher + new SimpleRecommendation("bedheight", "bedheight-soundings-70-1995-QP-1995", + // "bedheight-single-70-1995-MW-QP-1995", + "longitudinal_section")) + .runTest(overrideFileExport() != null ? overrideFileExport() : true); + } + + @Test + public void testRheinFTE() throws ConnectionException, ServerException, IOException { + RunnerCreatorHelper.createSinfoFlowdepthDevelopmentTest(FilenameMapper.FTE_RHEIN_FILE, 655, 665, River.Rhein, + // current + new SimpleRecommendation("staticwqkms", "fixations-wstv-0-372", "longitudinal_section", "23.09.2009-1"), // sicher + new SimpleRecommendation("bedheight", "bedheight-soundings-80-2008-FP-2008_NHN", + // "bedheight-single....", + "longitudinal_section"), + + // historical + new SimpleRecommendation("staticwqkms", "fixations-wstv-0-374", "longitudinal_section", "18.03.1997"), // sicher + new SimpleRecommendation("bedheight", "bedheight-single-89-1991-MW-NIEDERRHEIN_QP-1991_Epoche_NHN", + // "bedheight-soundings-89-1991-NIEDERRHEIN_QP-1991_Epoche_NHN", + "longitudinal_section")) + .runTest(overrideFileExport() != null ? overrideFileExport() : true); + } + } \ No newline at end of file