Mercurial > dive4elements > river
diff gwt-client/src/test/java/test/sinfo/SinfoFloodDurationRunner.java @ 9567:86e522bc7f36
jUnit-Tests completed
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 13:21:57 +0100 |
parents | e567fac95e3d |
children | 531a60b7af95 |
line wrap: on
line diff
--- a/gwt-client/src/test/java/test/sinfo/SinfoFloodDurationRunner.java Mon Nov 05 10:19:12 2018 +0100 +++ b/gwt-client/src/test/java/test/sinfo/SinfoFloodDurationRunner.java Mon Nov 05 13:21:57 2018 +0100 @@ -21,7 +21,6 @@ import test.AbstractBerechnungsartenTester.River; import test.AbstractModuleRunner; import test.ICalcMode; -import test.IFilenameMapper; import test.WQInputHelper; import test.sinfo.SinfoFloodDurationRiversideChoice.RiversideChoiceKey; @@ -35,16 +34,16 @@ private final boolean showWspl; private final RiversideChoiceKey riverside; - public SinfoFloodDurationRunner(final ICalcMode calcmode, final IFilenameMapper file, final double from, final double to, final River river, - final double[] wasserspiegellage, final RiversideChoiceKey riverside, final boolean showWspl) throws ConnectionException, ServerException { - super(AbstractModuleRunner.Infotype.sinfo, calcmode, file, from, to, river); + public SinfoFloodDurationRunner(final ICalcMode calcmode, final double from, final double to, final River river, final double[] wasserspiegellage, + final RiversideChoiceKey riverside, final boolean showWspl) throws ConnectionException, ServerException { + super(AbstractModuleRunner.Infotype.sinfo, calcmode, from, to, river); this.wasserspiegellage = wasserspiegellage; this.showWspl = showWspl; this.riverside = riverside; } @Override - public void runTest(final boolean exportToFile) throws ServerException, IOException { + public void runTest() throws ServerException, IOException { /* Select River */ super.selectRiver(); @@ -64,12 +63,14 @@ final Data showWsplData = new StringOptionsData("wspl", "wspl", new DataItem[] { new DefaultDataItem("wspl", "wspl", String.valueOf(this.showWspl)) }); feedAndGo(new Data[] { showWsplData }, 0); - final WQInputHelper helper = new WQInputHelper(this.wasserspiegellage); - super.feedAndGo(helper.getDataforFeed(), // - 0);// reachable state index + if (this.showWspl) { + final WQInputHelper helper = new WQInputHelper(this.wasserspiegellage); + super.feedAndGo(helper.getDataforFeed(), // + 0);// reachable state index + } describeCollection(); - super.export(exportToFile); + super.runTests(); } }