org.apache.maven.artifact.versioning
Class VersionRangeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.artifact.versioning.VersionRangeTest
All Implemented Interfaces:
Test

public class VersionRangeTest
extends TestCase

Tests version range construction.

Author:
Brett Porter

Constructor Summary
VersionRangeTest()
           
 
Method Summary
 boolean enforceVersion(String requiredVersionRange, ArtifactVersion actualVersion)
           
 void testContains()
           
 void testIntersections()
           
 void testInvalidRanges()
           
 void testOrder0()
           
 void testRange()
           
 void testReleaseRangeBoundsContainsSnapshots()
           
 void testSnapshotRangeBoundsCanContainSnapshots()
           
 void testSnapshotSoftVersionCanContainSnapshot()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionRangeTest

public VersionRangeTest()
Method Detail

testRange

public void testRange()
               throws InvalidVersionSpecificationException,
                      OverConstrainedVersionException
Throws:
InvalidVersionSpecificationException
OverConstrainedVersionException

testInvalidRanges

public void testInvalidRanges()

testIntersections

public void testIntersections()
                       throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

testReleaseRangeBoundsContainsSnapshots

public void testReleaseRangeBoundsContainsSnapshots()
                                             throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

testSnapshotRangeBoundsCanContainSnapshots

public void testSnapshotRangeBoundsCanContainSnapshots()
                                                throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

testSnapshotSoftVersionCanContainSnapshot

public void testSnapshotSoftVersionCanContainSnapshot()
                                               throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

testContains

public void testContains()
                  throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

enforceVersion

public boolean enforceVersion(String requiredVersionRange,
                              ArtifactVersion actualVersion)
                       throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

testOrder0

public void testOrder0()


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.