diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java | 10 |
2 files changed, 16 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2012-12-21 Jiri Vanek <[email protected]> + + Forgotten condition for AviationWeather first run: + * tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java: + (AviationWeather) added condition for first run when creation of + FileManager is written to stderr. + 2012-12-20 Saad Mohammad <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java: diff --git a/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java b/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java index 99455bc..40beca0 100644 --- a/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java +++ b/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java @@ -188,7 +188,15 @@ public class RemoteApplicationSettings { } } - public static class AviationWeather extends NoOutputs { + public static class AviationWeather extends StringBasedURL { + + @Override + public void evaluate(ProcessResult pr) { + Assert.assertTrue(stdoutEmpty, pr.stdout.length() == 0); + Assert.assertTrue(pr.stderr.length() == 0 || (pr.stderr.contains("Cannot read File Manager history data file,") + && pr.stderr.contains("FileMgr will be initialized with default options"))); + + } public AviationWeather() { super("http://aviationweather.gov/static/adds/java/fpt/fpt.jnlp"); |