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:
Benjamin Bentmann 2008-09-21 12:59:53 +00:00
parent 7994341e99
commit 01dc8007ca
1 changed files with 16 additions and 4 deletions

View File

@ -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 )