public class DefaultMojoScannerTest extends junit.framework.TestCase
Constructor and Description |
---|
DefaultMojoScannerTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkResult(PluginDescriptor pluginDescriptor,
Collection<String> expectedGoals)
Checks if the
PluginDescriptor contains exactly the MojoDescriptor s with the
supplied goal names. |
protected void |
setUp() |
void |
testAllExtractorsThroughNull() |
void |
testNoExtractorsThroughEmptySet() |
void |
testSpecifiedExtractors() |
void |
testUnknownExtractor() |
void |
testUnspecifiedExtractors() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
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
public DefaultMojoScannerTest()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testUnspecifiedExtractors() throws Exception
Exception
public void testSpecifiedExtractors() throws Exception
Exception
public void testAllExtractorsThroughNull() throws Exception
Exception
public void testNoExtractorsThroughEmptySet() throws Exception
Exception
public void testUnknownExtractor() throws Exception
Exception
protected void checkResult(PluginDescriptor pluginDescriptor, Collection<String> expectedGoals)
PluginDescriptor
contains exactly the MojoDescriptor
s with the
supplied goal names.pluginDescriptor
- The PluginDescriptor
to check.expectedGoals
- The goal names of the MojoDescriptor
s.Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.