9428
|
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 |
9570
|
12 import java.io.File; |
9428
|
13 import java.util.List; |
|
14 |
|
15 import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; |
|
16 import org.dive4elements.river.client.shared.exceptions.ServerException; |
|
17 import org.dive4elements.river.client.shared.model.SalixZone; |
|
18 |
|
19 import test.AbstractBerechnungsartenTester.River; |
|
20 |
|
21 /** |
|
22 * @author Domenico Nardi Tironi |
|
23 * |
|
24 */ |
|
25 final class UinfoSalixSupraregionalRunner extends UinfoSalixRunner { |
|
26 |
|
27 private final List<SalixZone> supraregionalTable; |
|
28 |
9570
|
29 public UinfoSalixSupraregionalRunner(final File testFolder, final double from, final double to, final River river, final String scenarioChoice, |
9428
|
30 final List<SalixZone> supraRegionalTable) throws ConnectionException, ServerException { |
9570
|
31 super(testFolder, from, to, river, scenarioChoice); |
9428
|
32 this.supraregionalTable = supraRegionalTable; |
|
33 } |
|
34 |
|
35 @Override |
|
36 protected void makeScenario() throws ConnectionException, ServerException { |
9441
|
37 super.feedAndGoSimpleTextInput("scenario_selection", this.getScenarioChoice()); |
9428
|
38 |
9441
|
39 super.feedAndGoSimpleTextInput("supraregional_table", SalixZone.parseListToDataString(this.supraregionalTable)); |
9428
|
40 |
|
41 } |
|
42 |
|
43 } |