diff options
author | Jiri Vanek <[email protected]> | 2012-12-21 13:19:14 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-12-21 13:19:14 +0100 |
commit | 77d66397adaec6704b0c3961b3c9e5e2ba733712 (patch) | |
tree | a098ea1c57ab574951c4d866df0efa7677dbe025 | |
parent | 266d97d1c75a7ec774a77baa166d5f8ffd6d86c2 (diff) |
Forgotten condition for AviationWeather first run
-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"); |