mirror of https://github.com/apache/maven.git
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:
parent
e87621fa6c
commit
b8bdaaaae8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue