Mercurial > dive4elements > river
view gwt-client/src/test/java/test/sinfo/SinfoTkhRunner.java @ 9571:e72fbd8e7cab
error deleted
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 17:18:19 +0100 |
parents | 531a60b7af95 |
children |
line wrap: on
line source
/** 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.sinfo; import java.io.File; import java.io.IOException; import org.dive4elements.artifacts.httpclient.exceptions.ConnectionException; import org.dive4elements.river.client.shared.exceptions.ServerException; import org.dive4elements.river.client.shared.model.Data; import org.dive4elements.river.client.shared.model.DataItem; import org.dive4elements.river.client.shared.model.DefaultDataItem; import org.dive4elements.river.client.shared.model.StringOptionsData; import test.AbstractBerechnungsartenTester.River; import test.AbstractModuleRunner; import test.ICalcMode; import test.WQInputHelper; /** * @author Domenico Nardi Tironi * */ final class SinfoTkhRunner extends AbstractModuleRunner { private final double[] wasserspiegellage; public SinfoTkhRunner(final File testFolder, final ICalcMode sinfoCalcFlowDepth, final double from, final double to, final River river, final double[] wasserspiegellage) throws ConnectionException, ServerException { super(testFolder, AbstractModuleRunner.Infotype.sinfo, sinfoCalcFlowDepth, from, to, river); this.wasserspiegellage = wasserspiegellage; } @Override public void runTest() throws ServerException, IOException { /* Select River */ super.selectRiver(); /* Select ICalcMode */ super.selectCalcMode(); super.feed(new Data[] { new StringOptionsData("ld_mode", "ld_mode", new DataItem[] { new DefaultDataItem("distance_only", "distance_only", "distance_only") }) }); // leider // wichtig // :-( /* Select Range */ super.selectRange(); final WQInputHelper helper = new WQInputHelper(this.wasserspiegellage); super.feedAndGo(helper.getDataforFeed(), // 0);// reachable state index describeCollection(); super.runTests(); } }