comparison 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
comparison
equal deleted inserted replaced
9423:a299f32e4a71 9424:da19f1f58d72
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
2 * Software engineering by
3 * Björnsen Beratende Ingenieure GmbH
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
5 *
6 * This file is Free Software under the GNU AGPL (>=v3)
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details.
9 */
10 package test.uinfo;
11
12 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException;
13 import org.dive4elements.river.client.shared.exceptions.ServerException;
14
15 import test.AbstractBerechnungsartenTester.River;
16 import test.IFilenameMapper;
17
18 /**
19 * @author Domenico Nardi Tironi
20 *
21 */
22 final class UinfoSalixRegionalRunner extends UinfoSalixRunner {
23
24 private final double fromPart;
25 private final double toPart;
26 private final String dwspl;
27
28 public UinfoSalixRegionalRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice,
29 final double fromPart, final double toPart, final String dwspl) throws ConnectionException, ServerException {
30 super(file, from, to, river, scenarioChoice);
31 this.fromPart = fromPart;
32 this.toPart = toPart;
33 this.dwspl = dwspl;
34 }
35
36 @Override
37 protected void makeScenario() throws ConnectionException, ServerException {
38 super.feedSimpleTextInput("scenario_selection", this.getScenarioChoice());
39
40 super.makeKmRange(this.fromPart, this.toPart, "ld_from_part", "ld_to_part");
41
42 super.feedSimpleTextInput("sedimentheight", this.dwspl);
43
44 }
45
46 }

http://dive4elements.wald.intevation.org