commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r600610 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java
Date Mon, 03 Dec 2007 17:24:48 GMT
Author: mbenson
Date: Mon Dec  3 09:24:47 2007
New Revision: 600610

URL: http://svn.apache.org/viewvc?rev=600610&view=rev
Log:
disable toPattern() assertions pre JDK 1.4

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java?rev=600610&r1=600609&r2=600610&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/AbstractMessageFormatTest.java
Mon Dec  3 09:24:47 2007
@@ -86,7 +86,9 @@
             String toPattern) {
         MessageFormat f = createMessageFormat(pattern, locale);
         assertEquals(expected, f.format(args));
-        assertEquals(toPattern, f.toPattern());
+        if (SystemUtils.isJavaVersionAtLeast(140)) {
+            assertEquals(toPattern, f.toPattern());
+        }
     }
 
     protected void doAssertions(Format format, Object[] args) {



Mime
View raw message