diff gwt-client/src/test/java/test/uinfo/UinfoSalixSupraregionalRunner.java @ 9428:15f274e6d83b

jUnit salix historical+supraregional
author gernotbelger
date Fri, 17 Aug 2018 17:40:59 +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/UinfoSalixSupraregionalRunner.java	Fri Aug 17 17:40:59 2018 +0200
@@ -0,0 +1,43 @@
+/** 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 java.util.List;
+
+import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException;
+import org.dive4elements.river.client.shared.exceptions.ServerException;
+import org.dive4elements.river.client.shared.model.SalixZone;
+
+import test.AbstractBerechnungsartenTester.River;
+import test.IFilenameMapper;
+
+/**
+ * @author Domenico Nardi Tironi
+ *
+ */
+final class UinfoSalixSupraregionalRunner extends UinfoSalixRunner {
+
+    private final List<SalixZone> supraregionalTable;
+
+    public UinfoSalixSupraregionalRunner(final IFilenameMapper file, final double from, final double to, final River river, final String scenarioChoice,
+            final List<SalixZone> supraRegionalTable) throws ConnectionException, ServerException {
+        super(file, from, to, river, scenarioChoice);
+        this.supraregionalTable = supraRegionalTable;
+    }
+
+    @Override
+    protected void makeScenario() throws ConnectionException, ServerException {
+        super.feedSimpleTextInput("scenario_selection", this.getScenarioChoice());
+
+        super.feedSimpleTextInput("supraregional_table", SalixZone.parseListToDataString(this.supraregionalTable));
+
+    }
+
+}

http://dive4elements.wald.intevation.org