maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1403048 - /maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java
Date Sun, 28 Oct 2012 17:31:41 GMT
Author: rfscholte
Date: Sun Oct 28 17:31:40 2012
New Revision: 1403048

URL: http://svn.apache.org/viewvc?rev=1403048&view=rev
Log:
Add null + empty String test

Modified:
    maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java

Modified: maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java?rev=1403048&r1=1403047&r2=1403048&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java
(original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/test/java/org/apache/maven/plugin/invoker/SelectorUtilsTest.java
Sun Oct 28 17:31:40 2012
@@ -93,6 +93,9 @@ public class SelectorUtilsTest
         assertFalse( SelectorUtils.isJreVersion( list( new int[] { 1, 5 } ), "1.5-" ) );
         assertFalse( SelectorUtils.isJreVersion( list( new int[] { 1, 5, 9 } ), "1.5-" )
);
         assertFalse( SelectorUtils.isJreVersion( list( new int[] { 1, 6 } ), "1.5-" ) );
+
+        assertTrue( SelectorUtils.isJreVersion( (String) null , "1.5" ) );
+        assertTrue( SelectorUtils.isJreVersion( "" , "1.5" ) );
     }
 
 }



Mime
View raw message