This allows fine-grained control over execution of individual test methods
by allowing tests to adjust to the current Maven version, or else simply avoid
executing altogether if the wrong version is present.

AbstractMavenIntegrationTestCase

Method Detail

matchesVersionRange

This allows fine-grained control over execution of individual test methods
by allowing tests to adjust to the current Maven version, or else simply avoid
executing altogether if the wrong version is present.

runTest

requiresJavaVersion

Guards the execution of a test case by checking that the current Java version matches the specified version
range. If the check fails, an exception will be thrown which aborts the current test and marks it as skipped. One
would usually call this method right at the start of a test method.

Parameters:

versionRange - The version range that specifies the acceptable Java versions for the test, must not be
null.

requiresMavenVersion

Guards the execution of a test case by checking that the current Maven version matches the specified version
range. If the check fails, an exception will be thrown which aborts the current test and marks it as skipped. One
would usually call this method right at the start of a test method.

Parameters:

versionRange - The version range that specifies the acceptable Maven versions for the test, must not be
null.