Mercurial > dive4elements > river
comparison gwt-client/src/test/java/test/uinfo/UInfoBerechnungsartenTester.java @ 9570:531a60b7af95
failed tests will be saved to disk
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 17:15:30 +0100 |
parents | 86e522bc7f36 |
children |
comparison
equal
deleted
inserted
replaced
9569:9f83ebf67c92 | 9570:531a60b7af95 |
---|---|
4 import java.util.ArrayList; | 4 import java.util.ArrayList; |
5 import java.util.List; | 5 import java.util.List; |
6 | 6 |
7 import org.dive4elements.river.client.shared.exceptions.ServerException; | 7 import org.dive4elements.river.client.shared.exceptions.ServerException; |
8 import org.dive4elements.river.client.shared.model.SalixZone; | 8 import org.dive4elements.river.client.shared.model.SalixZone; |
9 import org.junit.Ignore; | |
10 import org.junit.Test; | 9 import org.junit.Test; |
11 | 10 |
12 import test.AbstractBerechnungsartenTester; | 11 import test.AbstractBerechnungsartenTester; |
13 import test.FilenameSupplier; | 12 import test.FilenameSupplier; |
14 import test.ICalcMode; | 13 import test.ICalcMode; |
15 | 14 |
16 @Ignore | |
17 public class UInfoBerechnungsartenTester extends AbstractBerechnungsartenTester { | 15 public class UInfoBerechnungsartenTester extends AbstractBerechnungsartenTester { |
18 | 16 |
19 private final String UINFO_SALIX_MAIN_EXPORT_MODE_NAME = "uinfo_salix_line_export"; | 17 private final String UINFO_SALIX_MAIN_EXPORT_MODE_NAME = "uinfo_salix_line_export"; |
20 private final String UINFO_SALIX_LAENGS_CHART_NAME = "uinfo_salix_line"; | 18 private final String UINFO_SALIX_LAENGS_CHART_NAME = "uinfo_salix_line"; |
21 | 19 |
44 FilenameSupplier SALIX_03_CHART = new FilenameSupplier("/uinfo/salix/uinfo_salix_03_chart_laengs.csv"); // | 42 FilenameSupplier SALIX_03_CHART = new FilenameSupplier("/uinfo/salix/uinfo_salix_03_chart_laengs.csv"); // |
45 FilenameSupplier SALIX_04 = new FilenameSupplier("/uinfo/salix/uinfo_salix_04.csv"); // | 43 FilenameSupplier SALIX_04 = new FilenameSupplier("/uinfo/salix/uinfo_salix_04.csv"); // |
46 | 44 |
47 @Test | 45 @Test |
48 public void test01() throws ServerException, IOException { | 46 public void test01() throws ServerException, IOException { |
49 new UinfoSalixRunner(336.2, 866.3, River.Rhein, null) // | 47 new UinfoSalixRunner(super.testFolder, 336.2, 866.3, River.Rhein, null) // |
50 .addOutputTest(this.SALIX_01, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // | 48 .addOutputTest(this.SALIX_01, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // |
51 .runTest(); | 49 .runTest(); |
52 // this.SALIX_NO_SCENARIO | 50 // this.SALIX_NO_SCENARIO |
53 } | 51 } |
54 | 52 |
55 @Test | 53 @Test |
56 public void test02() throws ServerException, IOException { | 54 public void test02() throws ServerException, IOException { |
57 new UinfoSalixRegionalRunner(336.2, 866.3, River.Rhein, "scenarioType.option1", 336.2, 866.3, "-50 50")// | 55 new UinfoSalixRegionalRunner(super.testFolder, 336.2, 866.3, River.Rhein, "scenarioType.option1", 336.2, 866.3, "-50 50")// |
58 .addOutputTest(this.SALIX_02, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // | 56 .addOutputTest(this.SALIX_02, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // |
59 .addOutputTest(this.SALIX_02_CHART, this.UINFO_SALIX_LAENGS_CHART_NAME, null) // | 57 .addOutputTest(this.SALIX_02_CHART, this.UINFO_SALIX_LAENGS_CHART_NAME, null) // |
60 .runTest(); | 58 .runTest(); |
61 // this.SALIX_REGIONAL_SCENARIO, | 59 // this.SALIX_REGIONAL_SCENARIO, |
62 } | 60 } |
68 zones.add(SalixZone.createFromTableEntry("-50", "100", "200")); | 66 zones.add(SalixZone.createFromTableEntry("-50", "100", "200")); |
69 zones.add(SalixZone.createFromTableEntry("0", "200", "300")); | 67 zones.add(SalixZone.createFromTableEntry("0", "200", "300")); |
70 zones.add(SalixZone.createFromTableEntry("30", "300", "450")); | 68 zones.add(SalixZone.createFromTableEntry("30", "300", "450")); |
71 zones.add(SalixZone.createFromTableEntry("0", "450", "550")); | 69 zones.add(SalixZone.createFromTableEntry("0", "450", "550")); |
72 | 70 |
73 new UinfoSalixSupraregionalRunner(0., 550.0, River.Elbe, "scenarioType.option2", zones) | 71 new UinfoSalixSupraregionalRunner(super.testFolder, 0., 550.0, River.Elbe, "scenarioType.option2", zones) |
74 .addOutputTest(this.SALIX_03, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // | 72 .addOutputTest(this.SALIX_03, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // |
75 .addOutputTest(this.SALIX_03_CHART, this.UINFO_SALIX_LAENGS_CHART_NAME, null) // | 73 .addOutputTest(this.SALIX_03_CHART, this.UINFO_SALIX_LAENGS_CHART_NAME, null) // |
76 .runTest(); | 74 .runTest(); |
77 // this.SALIX_SUPRAREGIONAL_SCENARIO, | 75 // this.SALIX_SUPRAREGIONAL_SCENARIO, |
78 } | 76 } |
79 | 77 |
80 @Test | 78 @Test |
81 public void test04() throws ServerException, IOException { | 79 public void test04() throws ServerException, IOException { |
82 // name of sounding can be found in ParameterMatrixPanel.getData | 80 // name of sounding can be found in ParameterMatrixPanel.getData |
83 new UinfoSalixHistoricalRunner(0., 598.3, River.Elbe, "scenarioType.option3", "single-68", 0.1, 585.3) | 81 new UinfoSalixHistoricalRunner(super.testFolder, 0., 598.3, River.Elbe, "scenarioType.option3", "single-68", 0.1, 585.3) |
84 .addOutputTest(this.SALIX_04, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // | 82 .addOutputTest(this.SALIX_04, this.UINFO_SALIX_MAIN_EXPORT_MODE_NAME, null) // |
85 .runTest(); | 83 .runTest(); |
86 // this.SALIX_HISTORICAL_SCENARIO, | 84 // this.SALIX_HISTORICAL_SCENARIO, |
87 } | 85 } |
88 | 86 |