Mercurial > dive4elements > river
diff gwt-client/src/test/java/test/AbstractModuleRunner.java @ 9570:531a60b7af95
failed tests will be saved to disk
author | gernotbelger |
---|---|
date | Mon, 05 Nov 2018 17:15:30 +0100 |
parents | 86e522bc7f36 |
children |
line wrap: on
line diff
--- a/gwt-client/src/test/java/test/AbstractModuleRunner.java Mon Nov 05 13:51:47 2018 +0100 +++ b/gwt-client/src/test/java/test/AbstractModuleRunner.java Mon Nov 05 17:15:30 2018 +0100 @@ -1,5 +1,6 @@ package test; +import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -66,14 +67,17 @@ private final River river; private final List<ModuleRunnerOutput> outputList; - public AbstractModuleRunner(final Infotype infotype, final ICalcMode calcmode, final double from, final double to, final River beispielfluss) - throws ConnectionException, ServerException { + protected final File testFolder; + + public AbstractModuleRunner(final File testFolder, final Infotype infotype, final ICalcMode calcmode, final double from, final double to, + final River beispielfluss) throws ConnectionException, ServerException { // common attributes (evtl. doch in subklassen, evtl. Zwischenhierarchiestufe einführen this.outputList = new ArrayList<ModuleRunnerOutput>(); this.iCalcMode = calcmode; this.river = beispielfluss; this.from = from; this.to = to; + this.testFolder = testFolder; this.infotype = infotype; @@ -261,7 +265,7 @@ if (!stateHasRequiredOutputMode(name)) { Assert.fail("Unbekannter outputmode " + name); } - output.assertAndWriteToFile(this.client, this.collection.identifier()); + output.assertAndWriteToFile(this.client, this.collection.identifier(), this.testFolder); } }