commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1065232 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
Date Sun, 30 Jan 2011 08:48:26 GMT
Author: bayard
Date: Sun Jan 30 08:48:26 2011
New Revision: 1065232

URL: http://svn.apache.org/viewvc?rev=1065232&view=rev
Log:
Adding testing for Java 1.8, confirming that 1.9 is not there to test the null handling and
confirming that the wrapper method works

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java?rev=1065232&r1=1065231&r2=1065232&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
Sun Jan 30 08:48:26 2011
@@ -39,6 +39,9 @@ public class JavaVersionTest extends Tes
         assertEquals("1.5 failed", JAVA_1_5, get("1.5"));
         assertEquals("1.6 failed", JAVA_1_6, get("1.6"));
         assertEquals("1.7 failed", JAVA_1_7, get("1.7"));
+        assertEquals("1.8 failed", JAVA_1_8, get("1.8"));
+        assertNull("1.9 unexpectedly worked", get("1.9"));
+        assertEquals("Wrapper method failed", get("1.5"), getJavaVersion("1.5"));
     }
 
     public void testAtLeast() {



Mime
View raw message