public class TestEnforcerRuleUtils extends AbstractMojoTestCase
Constructor and Description |
---|
TestEnforcerRuleUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
execute(EnforcerRule rule,
EnforcerRuleHelper helper,
boolean shouldFail)
Simpler wrapper to execute and deal with the expected result.
|
void |
testCheckIfModelMatches()
Test check if model matches.
|
void |
testGetModelsRecursivelyBottom()
Test get models recursively bottom.
|
void |
testGetModelsRecursivelyParentExpression() |
void |
testGetModelsRecursivelyParentRelativePath() |
void |
testGetModelsRecursivelyParentRelativePathDirectory() |
void |
testGetModelsRecursivelyTop()
Test get models recursively top.
|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setUp, setVariableValueToObject
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public TestEnforcerRuleUtils()
public void testCheckIfModelMatches()
public void testGetModelsRecursivelyBottom() throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
ArtifactResolutionException
- the artifact resolution exceptionArtifactNotFoundException
- the artifact not found exceptionIOException
- Signals that an I/O exception has occurred.XmlPullParserException
- the xml pull parser exceptionpublic void testGetModelsRecursivelyTop() throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
ArtifactResolutionException
- the artifact resolution exceptionArtifactNotFoundException
- the artifact not found exceptionIOException
- Signals that an I/O exception has occurred.XmlPullParserException
- the xml pull parser exceptionpublic void testGetModelsRecursivelyParentExpression() throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
public void testGetModelsRecursivelyParentRelativePath() throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
public void testGetModelsRecursivelyParentRelativePathDirectory() throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
public static void execute(EnforcerRule rule, EnforcerRuleHelper helper, boolean shouldFail)
rule
- the rulehelper
- the helpershouldFail
- the should failCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.