maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r691751 - /maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java
Date Wed, 03 Sep 2008 19:55:51 GMT
Author: brianf
Date: Wed Sep  3 12:55:51 2008
New Revision: 691751

URL: http://svn.apache.org/viewvc?rev=691751&view=rev
Log:
added some tests to probe MENFORCER-50

Modified:
    maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java?rev=691751&r1=691750&r2=691751&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java
(original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestAbstractVersionEnforcer.java
Wed Sep  3 12:55:51 2008
@@ -79,6 +79,11 @@
         assertTrue( AbstractVersionEnforcer.containsVersion( VersionRange.createFromVersionSpec(
"[1.5.0,)" ), version ) );
         assertTrue( AbstractVersionEnforcer.containsVersion( VersionRange.createFromVersionSpec(
"[1.5,1.6)" ), version ) );
 
+        //MENFORCER-50
+        version = new DefaultArtifactVersion ("2.1.0-M1-RC12");
+        assertTrue( AbstractVersionEnforcer.containsVersion( VersionRange.createFromVersionSpec(
"[2.1.0-M1-RC12,)" ), version ) );
+        assertFalse( AbstractVersionEnforcer.containsVersion( VersionRange.createFromVersionSpec(
"[2.1.0-M1,)" ), version ) );
+        
     }
 
     /**



Mime
View raw message