mirror of https://github.com/apache/maven.git
o Decoupled subclasses from maven-artifact
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@697502 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7994341e99
commit
01dc8007ca
|
@ -53,9 +53,15 @@ public abstract class AbstractMavenIntegrationTestCase
|
|||
}
|
||||
|
||||
protected AbstractMavenIntegrationTestCase( String versionRangeStr )
|
||||
throws InvalidVersionSpecificationException
|
||||
{
|
||||
try
|
||||
{
|
||||
versionRange = VersionRange.createFromVersionSpec( versionRangeStr );
|
||||
}
|
||||
catch ( InvalidVersionSpecificationException e)
|
||||
{
|
||||
throw (RuntimeException) new IllegalArgumentException( "Invalid version range: " + versionRangeStr ).initCause( e );
|
||||
}
|
||||
|
||||
String v = System.getProperty( "maven.version" );
|
||||
if ( v != null )
|
||||
|
@ -79,9 +85,15 @@ public abstract class AbstractMavenIntegrationTestCase
|
|||
* executing altogether if the wrong version is present.
|
||||
*/
|
||||
protected boolean matchesVersionRange( String versionRangeStr )
|
||||
throws InvalidVersionSpecificationException
|
||||
{
|
||||
try
|
||||
{
|
||||
versionRange = VersionRange.createFromVersionSpec( versionRangeStr );
|
||||
}
|
||||
catch ( InvalidVersionSpecificationException e)
|
||||
{
|
||||
throw (RuntimeException) new IllegalArgumentException( "Invalid version range: " + versionRangeStr ).initCause( e );
|
||||
}
|
||||
|
||||
String v = System.getProperty( "maven.version" );
|
||||
if ( v != null )
|
||||
|
|
Loading…
Reference in New Issue