Mercurial > dive4elements > river
view gwt-client/src/test/java/test/uinfo/UInfoBerechnungsartenTester.java @ 9422:e567fac95e3d
uinfo salix no scenario jUnit test
author | gernotbelger |
---|---|
date | Fri, 17 Aug 2018 11:43:42 +0200 |
parents | |
children | da19f1f58d72 |
line wrap: on
line source
package test.uinfo; import java.io.IOException; import org.dive4elements.river.client.shared.exceptions.ServerException; import org.junit.Ignore; import org.junit.Test; import test.AbstractBerechnungsartenTester; import test.ICalcMode; import test.IFilenameMapper; /** * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ // REMARK: ignored, because maven will auto-test all tests, but this one needs a running river-artifacts // For running the JUunit test, the annotation @Ignore has to be disabled @Ignore public class UInfoBerechnungsartenTester extends AbstractBerechnungsartenTester { public static enum CalcMode implements ICalcMode { uinfo_salix_line, // // der Vollständigkeit halber uinfo_inundation_duration, uinfo_vegetation_zones }; public static enum FilenameMapper implements IFilenameMapper { SALIX_NO_SCENARIO("/uinfo/salix/salix_no_scenario.csv"); // private final String filename; FilenameMapper(final String filename) { this.filename = filename; } @Override public String getFilename() { return this.filename; } } /* Salix no Scenario */ @Override @Test public void testSalixNoScenario() throws ServerException, IOException { UinfoRunnerCreatorHelper.createUinfoSalixTest(FilenameMapper.SALIX_NO_SCENARIO, 0., 182.4, River.Beispielfluss, null) .runTest(overrideFileExport() != null ? overrideFileExport() : true); } }