Check that a snapshot is included in a range

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@559052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2007-07-24 13:59:04 +00:00
parent e87621fa6c
commit b8bdaaaae8
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ public class VersionRangeTest
range = VersionRange.createFromVersionSpec( "[1.0,)" );
assertFalse( range.containsVersion( new DefaultArtifactVersion( "1.0-SNAPSHOT" ) ) );
range = VersionRange.createFromVersionSpec( "[1.0,1.1]" );
assertTrue( range.containsVersion( new DefaultArtifactVersion( "1.1-SNAPSHOT" ) ) );
}
public void testInvalidRanges()