diff options
author | Vlastimil Babka <caster@gentoo.org> | 2006-10-27 00:33:58 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2006-10-27 00:33:58 +0000 |
commit | 8b8a21585bbfdf88bfc5b22e9cc587fab567676a (patch) | |
tree | 69e90d0d84ca0934546d00ace7435e878e5deeea /dev-java/jaxen/files | |
parent | Remove plugin depending on masked xmms. Thanks to Jorge Vargas in bug #152936. (diff) | |
download | gentoo-2-8b8a21585bbfdf88bfc5b22e9cc587fab567676a.tar.gz gentoo-2-8b8a21585bbfdf88bfc5b22e9cc587fab567676a.tar.bz2 gentoo-2-8b8a21585bbfdf88bfc5b22e9cc587fab567676a.zip |
Correct testcases so they don't require 1.5 JDK API. Fixes bug #152400.
(Portage version: 2.1.2_pre3-r9)
Diffstat (limited to 'dev-java/jaxen/files')
-rw-r--r-- | dev-java/jaxen/files/jaxen-1.1_beta11-fix-jdk14-tests.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-java/jaxen/files/jaxen-1.1_beta11-fix-jdk14-tests.patch b/dev-java/jaxen/files/jaxen-1.1_beta11-fix-jdk14-tests.patch new file mode 100644 index 000000000000..2138da37518b --- /dev/null +++ b/dev-java/jaxen/files/jaxen-1.1_beta11-fix-jdk14-tests.patch @@ -0,0 +1,20 @@ +--- src/java/test/org/jaxen/test/SimpleVariableContextTest.java 2006-10-27 02:24:14.000000000 +0200 ++++ src/java/test/org/jaxen/test/SimpleVariableContextTest.java 2006-10-27 02:22:23.000000000 +0200 +@@ -99,7 +99,7 @@ + + // test the result + assertEquals("String Value", copy.getVariableValue("", "", "s")); +- assertEquals(Double.valueOf(3.1415292), copy.getVariableValue("", "", "x")); ++ assertEquals(new Double(3.1415292), copy.getVariableValue("", "", "x")); + assertEquals(Boolean.TRUE, copy.getVariableValue("", "", "b")); + assertEquals("", ""); + +@@ -116,7 +116,7 @@ + + // test the result + assertEquals("String Value", context.getVariableValue("", "", "s")); +- assertEquals(Double.valueOf(3.1415292), context.getVariableValue("", "", "x")); ++ assertEquals(new Double(3.1415292), context.getVariableValue("", "", "x")); + assertEquals(Boolean.TRUE, context.getVariableValue("", "", "b")); + assertEquals("", ""); + |