Package org.apache.maven.plugin.compiler
Class CompilerMojoTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.codehaus.plexus.PlexusTestCase
-
- org.apache.maven.plugin.testing.AbstractMojoTestCase
-
- org.apache.maven.plugin.compiler.CompilerMojoTestCase
-
- All Implemented Interfaces:
junit.framework.Test
public class CompilerMojoTestCase extends AbstractMojoTestCase
-
-
Constructor Summary
Constructors Constructor Description CompilerMojoTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setUp()
void
testCompileFailOnError()
void
testCompileFailure()
void
testCompilerArgs()
void
testCompilerBasic()
tests the ability of the plugin to compile a basic filevoid
testCompilerBasicSourceTarget()
void
testCompilerEmptySource()
tests the ability of the plugin to respond to empty sourcevoid
testCompilerFork()
tests the ability of the plugin to fork and successfully compilevoid
testCompilerIncludesExcludes()
tests the ability of the plugin to respond to includes and excludes correctlyvoid
testCompileSkipMain()
Tests that setting 'skipMain' to true skips compilation of the main Java source files, but that test Java source files are still compiled.void
testCompileSkipTest()
Tests that setting 'skip' to true skips compilation of the test Java source files, but that main Java source files are still compiled.void
testOneOutputFileForAllInput()
void
testOneOutputFileForAllInput2()
-
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject
-
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainer
-
Methods inherited from class junit.framework.TestCase
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
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws Exception
- Overrides:
setUp
in classAbstractMojoTestCase
- Throws:
Exception
-
testCompilerBasic
public void testCompilerBasic() throws Exception
tests the ability of the plugin to compile a basic file- Throws:
Exception
-
testCompilerBasicSourceTarget
public void testCompilerBasicSourceTarget() throws Exception
- Throws:
Exception
-
testCompilerEmptySource
public void testCompilerEmptySource() throws Exception
tests the ability of the plugin to respond to empty source- Throws:
Exception
-
testCompilerIncludesExcludes
public void testCompilerIncludesExcludes() throws Exception
tests the ability of the plugin to respond to includes and excludes correctly- Throws:
Exception
-
testCompilerFork
public void testCompilerFork() throws Exception
tests the ability of the plugin to fork and successfully compile- Throws:
Exception
-
testOneOutputFileForAllInput
public void testOneOutputFileForAllInput() throws Exception
- Throws:
Exception
-
testOneOutputFileForAllInput2
public void testOneOutputFileForAllInput2() throws Exception
- Throws:
Exception
-
testCompileSkipMain
public void testCompileSkipMain() throws Exception
Tests that setting 'skipMain' to true skips compilation of the main Java source files, but that test Java source files are still compiled.- Throws:
Exception
-
-