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 voidsetUp()voidtestCompileFailOnError()voidtestCompileFailure()voidtestCompilerArgs()voidtestCompilerBasic()tests the ability of the plugin to compile a basic filevoidtestCompilerBasicSourceTarget()voidtestCompilerEmptySource()tests the ability of the plugin to respond to empty sourcevoidtestCompilerFork()tests the ability of the plugin to fork and successfully compilevoidtestCompilerIncludesExcludes()tests the ability of the plugin to respond to includes and excludes correctlyvoidtestCompileSkipMain()Tests that setting 'skipMain' to true skips compilation of the main Java source files, but that test Java source files are still compiled.voidtestCompileSkipTest()Tests that setting 'skip' to true skips compilation of the test Java source files, but that main Java source files are still compiled.voidtestOneOutputFileForAllInput()voidtestOneOutputFileForAllInput2()-
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:
setUpin classAbstractMojoTestCase- Throws:
Exception
-
testCompilerBasic
public void testCompilerBasic() throws Exceptiontests 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 Exceptiontests the ability of the plugin to respond to empty source- Throws:
Exception
-
testCompilerIncludesExcludes
public void testCompilerIncludesExcludes() throws Exceptiontests the ability of the plugin to respond to includes and excludes correctly- Throws:
Exception
-
testCompilerFork
public void testCompilerFork() throws Exceptiontests 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 ExceptionTests that setting 'skipMain' to true skips compilation of the main Java source files, but that test Java source files are still compiled.- Throws:
Exception
-
-