view gwt-client/src/test/java/test/uinfo/UinfoSalixSupraregionalRunner.java @ 9441:e75afd693f78

Backed out changeset: e991c4cec0d0
author gernotbelger
date Mon, 20 Aug 2018 17:30:13 +0200
parents e991c4cec0d0
children 86e522bc7f36
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.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.feedAndGoSimpleTextInput("scenario_selection", this.getScenarioChoice());

        super.feedAndGoSimpleTextInput("supraregional_table", SalixZone.parseListToDataString(this.supraregionalTable));

    }

}

http://dive4elements.wald.intevation.org