9422
|
1 package test.uinfo; |
|
2 |
|
3 import java.io.IOException; |
|
4 |
|
5 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
6 import org.junit.Ignore; |
|
7 import org.junit.Test; |
|
8 |
|
9 import test.AbstractBerechnungsartenTester; |
|
10 import test.ICalcMode; |
|
11 import test.IFilenameMapper; |
|
12 |
|
13 /** |
|
14 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
|
15 */ |
|
16 |
|
17 // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts |
|
18 // For running the JUunit test, the annotation @Ignore has to be disabled |
|
19 @Ignore |
|
20 public class UInfoBerechnungsartenTester extends AbstractBerechnungsartenTester { |
|
21 |
|
22 public static enum CalcMode implements ICalcMode { |
|
23 uinfo_salix_line, // |
|
24 // der Vollständigkeit halber |
|
25 uinfo_inundation_duration, uinfo_vegetation_zones |
|
26 }; |
|
27 |
|
28 public static enum FilenameMapper implements IFilenameMapper { |
|
29 |
|
30 SALIX_NO_SCENARIO("/uinfo/salix/salix_no_scenario.csv"); // |
|
31 |
|
32 private final String filename; |
|
33 |
|
34 FilenameMapper(final String filename) { |
|
35 this.filename = filename; |
|
36 } |
|
37 |
|
38 @Override |
|
39 public String getFilename() { |
|
40 return this.filename; |
|
41 } |
|
42 } |
|
43 |
|
44 /* Salix no Scenario */ |
|
45 @Override |
|
46 @Test |
|
47 public void testSalixNoScenario() throws ServerException, IOException { |
|
48 |
|
49 UinfoRunnerCreatorHelper.createUinfoSalixTest(FilenameMapper.SALIX_NO_SCENARIO, 0., 182.4, River.Beispielfluss, null) |
|
50 .runTest(overrideFileExport() != null ? overrideFileExport() : true); |
|
51 } |
|
52 |
|
53 } |