Mercurial > dive4elements > river
diff gwt-client/src/test/java/test/uinfo/UinfoSalixRegionalRunner.java @ 9424:da19f1f58d72
jUnit test uinfo salix regional
author | gernotbelger |
---|---|
date | Fri, 17 Aug 2018 14:29:05 +0200 |
parents | |
children | ce0a48b93f4b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gwt-client/src/test/java/test/uinfo/UinfoSalixRegionalRunner.java Fri Aug 17 14:29:05 2018 +0200 @@ -0,0 +1,46 @@ +/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde + * Software engineering by + * Björnsen Beratende Ingenieure GmbH + * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt + * + * This file is Free Software under the GNU AGPL (>=v3) + * and comes with ABSOLUTELY NO WARRANTY! Check out the + * documentation coming with Dive4Elements River for details. + */ +package test.uinfo; + +import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; +import org.dive4elements.river.client.shared.exceptions.ServerException; + +import test.AbstractBerechnungsartenTester.River; +import test.IFilenameMapper; + +/** + * @author Domenico Nardi Tironi + * + */ +final class UinfoSalixRegionalRunner extends UinfoSalixRunner { + + private final double fromPart; + private final double toPart; + private final String dwspl; + + public UinfoSalixRegionalRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice, + final double fromPart, final double toPart, final String dwspl) throws ConnectionException, ServerException { + super(file, from, to, river, scenarioChoice); + this.fromPart = fromPart; + this.toPart = toPart; + this.dwspl = dwspl; + } + + @Override + protected void makeScenario() throws ConnectionException, ServerException { + super.feedSimpleTextInput("scenario_selection", this.getScenarioChoice()); + + super.makeKmRange(this.fromPart, this.toPart, "ld_from_part", "ld_to_part"); + + super.feedSimpleTextInput("sedimentheight", this.dwspl); + + } + +}