comparison gwt-client/src/test/java/test/BerechnungsartenTester.java @ 9133:af73fdd96920

Title current/historical diff pair; limit on entries in diff'pair twin_panel
author gernotbelger
date Thu, 07 Jun 2018 11:41:10 +0200
parents dbb26bc81843
children 48d87af1243e
comparison
equal deleted inserted replaced
9132:8cc192731c7d 9133:af73fdd96920
10 10
11 import java.io.IOException; 11 import java.io.IOException;
12 12
13 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; 13 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException;
14 import org.dive4elements.river.client.shared.exceptions.ServerException; 14 import org.dive4elements.river.client.shared.exceptions.ServerException;
15 import org.junit.Ignore;
16 import org.junit.Test; 15 import org.junit.Test;
17 16
18 /** 17 /**
19 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 18 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
20 */ 19 */
21 20
22 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts 21 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts
23 // For running the JUunit test, the annotation @Ignore has to be disabled 22 // For running the JUunit test, the annotation @Ignore has to be disabled
24 @Ignore 23 // @Ignore
25 public class BerechnungsartenTester { 24 public class BerechnungsartenTester {
26 25
27 public static enum CalcMode { 26 public static enum CalcMode {
28 sinfo_calc_flow_depth, sinfo_calc_flow_depth_development, sinfo_calc_flow_depth_minmax, sinfo_calc_collision, Transportkörperhöhen, sinfo_calc_flood_duration 27 sinfo_calc_flow_depth, sinfo_calc_flow_depth_development, sinfo_calc_flow_depth_minmax, sinfo_calc_collision, Transportkörperhöhen, sinfo_calc_flood_duration
29 }; 28 };
33 }; 32 };
34 33
35 public static enum FilenameMapper { 34 public static enum FilenameMapper {
36 35
37 HELLO_WORLD_FILE("/sinfo/flowdepthminmax/sinfo_flowdepthminmax_export.csv"), // 36 HELLO_WORLD_FILE("/sinfo/flowdepthminmax/sinfo_flowdepthminmax_export.csv"), //
37
38 // Schäfer-Tests:
38 RHEIN_1_FILE("/sinfo/flowdepth/sinfo_ft_01.csv"), // 39 RHEIN_1_FILE("/sinfo/flowdepth/sinfo_ft_01.csv"), //
39 RHEIN_2_FILE("/sinfo/flowdepth/sinfo_ft_02.csv"), // 40 RHEIN_3_FILE("/sinfo/flowdepth/sinfo_ft_03.csv"); //
40 RHEIN_3_FILE("/sinfo/flowdepth/sinfo_ft_03.csv");
41 41
42 private final String filename; 42 private final String filename;
43 43
44 FilenameMapper(final String filename) { 44 FilenameMapper(final String filename) {
45 this.filename = filename; 45 this.filename = filename;
72 .runTest(overrideFileExport() != null ? overrideFileExport() : true); 72 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
73 73
74 } 74 }
75 75
76 @Test 76 @Test
77 public void testRhein2() throws ConnectionException, ServerException, IOException {
78 // 2004 :: DGM-2004_Epoche FEHLT
79 RunnerCreatorHelper.createSinfoFlowdepthTest(FilenameMapper.RHEIN_2_FILE, 350, 380, River.Rhein, false,
80 new SimpleRecommendation("staticwqkms", "additionals-wstv-0-415", "longitudinal_section"),
81 new SimpleRecommendation("bedheight", "bedheight-soundings-79-2004-DGM-2004_Epoche", // FEHLT: 2004 :: DGM-2004_Epoche
82
83 "longitudinal_section"))
84 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
85 }
86
87 @Test
88 public void testRhein3() throws ConnectionException, ServerException, IOException { 77 public void testRhein3() throws ConnectionException, ServerException, IOException {
89 RunnerCreatorHelper 78 RunnerCreatorHelper
90 .createSinfoFlowdepthTest(FilenameMapper.RHEIN_3_FILE, 655, 675, River.Rhein, true, 79 .createSinfoFlowdepthTest(FilenameMapper.RHEIN_3_FILE, 655, 675, River.Rhein, true,
91 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-323", "longitudinal_section"), 80 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-323", "longitudinal_section"),
92 new SimpleRecommendation("bedheight", "bedheight-soundings-92-2004-NIEDERRHEIN_QP-2004_Epoche_NHN", "longitudinal_section")) 81 new SimpleRecommendation("bedheight", "bedheight-soundings-92-2004-NIEDERRHEIN_QP-2004_Epoche_NHN", "longitudinal_section"))

http://dive4elements.wald.intevation.org