/hg/icedtea-web: Fixed testJREversionDontMatchRemoval test.
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Mon Mar 2 13:23:59 UTC 2015
changeset 85fe0274f4a8 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=85fe0274f4a8
author: Jiri Vanek <jvanek at redhat.com>
date: Mon Mar 02 14:23:39 2015 +0100
Fixed testJREversionDontMatchRemoval test.
diffstat:
tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 716ea0c2ec19 -r 85fe0274f4a8 tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java
--- a/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java Fri Feb 27 15:09:18 2015 +0100
+++ b/tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java Mon Mar 02 14:23:39 2015 +0100
@@ -221,7 +221,12 @@
@Test
public void testJREversionDontMatchRemoval(){
- Assert.assertTrue(removeJreVersionWarning("Warning - your JRE - 1.8 - do not match requested JRE - {0}").isEmpty());
+ Assert.assertTrue(removeJreVersionWarning(Translator.R("JREversionDontMatch", "1.8.0-pre.whatever", "{0}")).isEmpty());
+ Assert.assertTrue(removeJreVersionWarning(Translator.R("JREversionDontMatch", "{0}", "{1}")).isEmpty());
+ Assert.assertTrue(removeJreVersionWarning(Translator.R("JREversionDontMatch", "1.3.0-pre-pac", "1.8.0-pre.whatever}")).isEmpty());
+ Assert.assertTrue(removeJreVersionWarning(Translator.R("JREversionDontMatch", "", "")).isEmpty());
+ Assert.assertTrue(removeJreVersionWarning(Translator.R("JREversionDontMatch", " - - - - ", " - - - ")).isEmpty());
+ Assert.assertFalse(removeJreVersionWarning("AA\n"+Translator.R("JREversionDontMatch", "1.3+", "1.7")+"\nBB").equals("AA\nBB"));
}
public static class Arbores extends NearlyNoOutputsOnWrongJRE {
More information about the distro-pkg-dev
mailing list