annotate gwt-client/src/test/java/test/sinfo/SinfoBerechnungsartenTester.java @ 9422:e567fac95e3d

uinfo salix no scenario jUnit test
author gernotbelger
date Fri, 17 Aug 2018 11:43:42 +0200
parents gwt-client/src/test/java/test/BerechnungsartenTester.java@9fe26f525ae3
children da19f1f58d72
rev   line source
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
1 package test.sinfo;
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
2
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
3 import java.io.IOException;
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
4
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
5 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException;
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
6 import org.dive4elements.river.client.shared.exceptions.ServerException;
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
7 import org.junit.Ignore;
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
8 import org.junit.Test;
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
9
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
10 import test.AbstractBerechnungsartenTester;
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
11 import test.ICalcMode;
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
12 import test.IFilenameMapper;
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
13 import test.SimpleRecommendation;
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
14 import test.sinfo.SinfoFloodDurationRiversideChoice.RiversideChoiceKey;
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
15
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
16 /**
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
18 */
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
19
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
20 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
21 // For running the JUunit test, the annotation @Ignore has to be disabled
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
22 @Ignore
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
23 public final class SinfoBerechnungsartenTester extends AbstractBerechnungsartenTester {
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
24 // has to be public for jUnit-Test
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
25 public static enum CalcMode implements ICalcMode {
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
26 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;
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
27
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
28 };
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
29
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
30 public static enum SinfoFilenameMapper implements IFilenameMapper {
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
31
9226
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
32 FT_MINMAX_RHEIN_1_FILE("/sinfo/flowdepthminmax/sinfo_minmaxft_01.csv"), //
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
33 FT_MINMAX_ELBE_2_FILE("/sinfo/flowdepthminmax/sinfo_minmaxft_02.csv"), //
9133
af73fdd96920 Title current/historical diff pair; limit on entries in diff'pair twin_panel
gernotbelger
parents: 9127
diff changeset
34
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
35 FT_RHEIN_1_FILE("/sinfo/flowdepth/sinfo_ft_01.csv"), //
9226
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
36 FT_RHEIN_2_FILE("/sinfo/flowdepth/sinfo_ft_02.csv"), //
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
37
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
38 FTE_ELBE_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_01.csv"), //
9226
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
39 FTE_RHEIN_FILE("/sinfo/flowdepthdevelopment/sinfo_fte_02.csv"),
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
40
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
41 TKH_1_ELBE_FILE("/sinfo/flowdepthtkh/sinfo_tkh_01.csv"), //
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
42 TKH_2_RHEIN_FILE("/sinfo/flowdepthtkh/sinfo_tkh_02.csv"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
43
9417
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
44 TKH_TKH_RHEIN_FILE("/sinfo/tkh/sinfo_tkh_export.csv"), //
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
45
9417
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
46 COLLISION_RHEIN_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_export.csv"), //
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
47 COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE("/sinfo/collision/sinfo_collision_epoch_export.csv"), //
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
48
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
49 FLOOD_DURATION_HELLO_WORLD_FILE("/sinfo/floodduration/sinfo_floodduration_export.csv");
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
50 private final String filename;
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
51
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
52 SinfoFilenameMapper(final String filename) {
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
53 this.filename = filename;
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
54 }
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
55
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
56 @Override
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
57 public String getFilename() {
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
58 return this.filename;
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
59 }
9031
efd2de78d158 work on unit testing
gernotbelger
parents:
diff changeset
60 }
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
61
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
62 /* FLOWDEPTH MIN MAX */
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
63 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
64 public void testFTMINMAX1() throws ServerException, IOException {
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
65
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
66 SinfoRunnerCreatorHelper.createSinfoFlowdepthMinMaxTest(SinfoFilenameMapper.FT_MINMAX_RHEIN_1_FILE, 430, 450, River.Rhein,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
67 new SimpleRecommendation("bedheight", "bedheight-single-79-2004-MW-DGM-2004_Epoche_NHN", "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
68 new SimpleRecommendation("staticwqkms", "additionals-wstv-0-269", "longitudinal_section", "Amtl.Festlegung_GlQ(2002)")
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
69
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
70 ).runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
71 }
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
72
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
73 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
74 public void testFTMINMAX2() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
75 SinfoRunnerCreatorHelper.createSinfoFlowdepthMinMaxTest(SinfoFilenameMapper.FT_MINMAX_ELBE_2_FILE, 0, 90, River.Elbe,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
76 // first
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
77 new SimpleRecommendation("bedheight", "bedheight-single-58-2015-MW-FP-2015_0-502", "longitudinal_section", "FP-2015_0-502"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
78 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-156", "longitudinal_section", "02.09.2004"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
79
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
80 // second
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
81 new SimpleRecommendation("bedheight", "bedheight-single-58-2015-MW-FP-2015_0-502", "longitudinal_section", "FP-2015_0-502"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
82 new SimpleRecommendation("staticwqkms", "fixations-wstv-1-156", "longitudinal_section", "03.09.2004"))
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
83 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
84 }
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
85
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
86 /* FLOWDEPTH */
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
87 @Test
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
88 public void testRhein1FT() throws ConnectionException, ServerException, IOException {
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
89
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
90 SinfoRunnerCreatorHelper.createSinfoFlowdepthTest(SinfoFilenameMapper.FT_RHEIN_1_FILE, 350, 380, River.Rhein, false,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
91
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
92 new SimpleRecommendation("bedheight", "bedheight-soundings-79-2004-DGM-2004_Epoche_NHN", "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
93 new SimpleRecommendation("staticwqkms", "additionals-wstv-0-415", "longitudinal_section"))
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
94 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
95
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
96 }
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
97
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
98 @Test
9226
83aee0942eae JUnit-Tests - tkh works
gernotbelger
parents: 9148
diff changeset
99 public void testRhein2FT() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
100 SinfoRunnerCreatorHelper
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
101 .createSinfoFlowdepthTest(SinfoFilenameMapper.FT_RHEIN_2_FILE, 655, 675, River.Rhein, true,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
102 new SimpleRecommendation("bedheight", "bedheight-soundings-92-2004-NIEDERRHEIN_QP-2004_Epoche_NHN", "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
103 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-323", "longitudinal_section"))
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
104
9127
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
105 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
106 }
dbb26bc81843 Testing
gernotbelger
parents: 9054
diff changeset
107
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
108 /* FLOWDEPTH DEVELOPMENT */
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
109
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
110 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
111 public void testElbeFTE() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
112 SinfoRunnerCreatorHelper.createSinfoFlowdepthDevelopmentTest(SinfoFilenameMapper.FTE_ELBE_FILE, 210, 230, River.Elbe,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
113 // current
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
114 new SimpleRecommendation("bedheight", "bedheight-soundings-66-2008-FP-QP-2008",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
115 // "bedheight-single-66-2008-MW-FP-QP-2008",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
116 "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
117 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-196", "longitudinal_section", "05.05.2008"), // sicher
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
118
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
119 // historical
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
120 new SimpleRecommendation("bedheight", "bedheight-soundings-70-1995-QP-1995",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
121 // "bedheight-single-70-1995-MW-QP-1995",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
122 "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
123 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-186", "longitudinal_section", "18.03.1997")// sicher
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
124 ).runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
125 }
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
126
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
127 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
128 public void testRheinFTE() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
129 SinfoRunnerCreatorHelper.createSinfoFlowdepthDevelopmentTest(SinfoFilenameMapper.FTE_RHEIN_FILE, 655, 665, River.Rhein,
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
130 // current
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
131 new SimpleRecommendation("bedheight", "bedheight-single-94-2008-MW-NIEDERRHEIN_QP-2008_Epoche_NHN",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
132 // "bedheight-single....",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
133 "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
134 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-372", "longitudinal_section", "23.09.2009-1"), // sicher
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
135
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
136 // historical
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
137 new SimpleRecommendation("bedheight", "bedheight-single-89-1991-MW-NIEDERRHEIN_QP-1991_Epoche_NHN",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
138 // "bedheight-soundings-89-1991-NIEDERRHEIN_QP-1991_Epoche_NHN",
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
139 "longitudinal_section"),
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
140 new SimpleRecommendation("staticwqkms", "fixations-wstv-0-374", "longitudinal_section", "23.09.1991") // sicher
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
141 ).runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
142 }
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
143
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
144 /* TKH */
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
145
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
146 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
147 public void testElbeTKH_1() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
148 SinfoRunnerCreatorHelper.createSinfoTkhTest(SinfoFilenameMapper.TKH_1_ELBE_FILE, 150, 160, River.Elbe, new double[] { 1520.0 })
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
149 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
150 }
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
151
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
152 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
153 public void testRheinTKH_2() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
154 SinfoRunnerCreatorHelper.createSinfoTkhTest(SinfoFilenameMapper.TKH_2_RHEIN_FILE, 600, 610, River.Rhein, new double[] { 6125, 6526 })
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
155 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
156 }
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
157
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
158 @Test
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
159 public void testTKhTkh() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
160 SinfoRunnerCreatorHelper.createSinfoTkhTest(SinfoFilenameMapper.TKH_TKH_RHEIN_FILE, 0, 182.4, River.Beispielfluss, new double[] { 1059.446 })
9228
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
161 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
dba14da43f23 JUnit-Tests finish
gernotbelger
parents: 9226
diff changeset
162 }
9148
48d87af1243e Unit testing flowdepthdevelopment added
gernotbelger
parents: 9133
diff changeset
163
9417
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
164 @Test
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
165 public void testCollision() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
166 SinfoRunnerCreatorHelper
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
167 .createSinfoCollisionYearsTest(SinfoFilenameMapper.COLLISION_RHEIN_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, new int[] { 2006, 2008 })
9417
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
168 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
169 }
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
170
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
171 @Test
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
172 public void testCollisionEpochs() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
173 SinfoRunnerCreatorHelper
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
174 .createSinfoCollisionEpochsTest(SinfoFilenameMapper.COLLISION_RHEIN_EPOCH_HELLO_WORLD_FILE, 336.2, 866.3, River.Rhein, "2006,2008;")
9417
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
175 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
176 }
46e3e23cca0b sinfo.collision jUnit-Test
gernotbelger
parents: 9228
diff changeset
177
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
178 @Test
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
179 public void testFloodDuration() throws ConnectionException, ServerException, IOException {
9422
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
180 SinfoRunnerCreatorHelper
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
181 .createSinfoFloodDurationTest(SinfoFilenameMapper.FLOOD_DURATION_HELLO_WORLD_FILE, 0, 182.4, River.Beispielfluss, new double[] { 2091.011 },
e567fac95e3d uinfo salix no scenario jUnit test
gernotbelger
parents: 9418
diff changeset
182 true, RiversideChoiceKey.BOTH)
9418
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
183
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
184 .runTest(overrideFileExport() != null ? overrideFileExport() : true);
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
185 }
9fe26f525ae3 sinfo floodduration jUnit test
gernotbelger
parents: 9417
diff changeset
186
9049
2ffb55a53e8d Ignored database dependent unit test
gernotbelger
parents: 9031
diff changeset
187 }

http://dive4elements.wald.intevation.org