public class JavaMojoDescriptorExtractorTest extends junit.framework.TestCase
Constructor and Description |
---|
JavaMojoDescriptorExtractorTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkExpected(String directory)
compare mojos from generated plugin.xml against plugin-expected.xml
|
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
extract(String directory)
extract plugin descriptor for test resources directory and check against plugin-expected.xml
|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
generate(String directory)
generate plugin.xml for a test resources directory content.
|
protected void |
setUp() |
void |
testAnnotationInPlugin()
Check that the mojo descriptor extractor will ignore any annotations that are found.
|
void |
testEnumWithRegexPattern() |
void |
testJava15SyntaxParsing()
Check that the mojo descriptor extractor will successfully parse sources with Java 1.5 language features like
generics.
|
void |
testMaven30Parameters() |
void |
testMethodReferenceInEnumConstructor() |
void |
testShouldFindTwoMojoDescriptorsInTestSourceDirectory() |
void |
testShouldPropagateImplementationParameter() |
void |
testSingleTypeImportWithFullyQualifiedClassName() |
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 JavaMojoDescriptorExtractorTest()
protected void setUp()
setUp
in class junit.framework.TestCase
protected org.apache.maven.plugin.descriptor.PluginDescriptor generate(String directory) throws Exception
Exception
protected void checkExpected(String directory) throws Exception
Exception
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extract(String directory) throws Exception
Exception
public void testShouldFindTwoMojoDescriptorsInTestSourceDirectory() throws Exception
Exception
public void testShouldPropagateImplementationParameter() throws Exception
Exception
public void testMaven30Parameters() throws Exception
Exception
public void testAnnotationInPlugin() throws Exception
Exception
public void testJava15SyntaxParsing() throws Exception
Exception
public void testSingleTypeImportWithFullyQualifiedClassName() throws Exception
Exception
public void testMethodReferenceInEnumConstructor() throws Exception
Exception
public void testEnumWithRegexPattern() throws Exception
Exception
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.