Package org.codehaus.plexus.compiler
Class AbstractCompilerTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.codehaus.plexus.PlexusTestCase
-
- org.codehaus.plexus.compiler.AbstractCompilerTest
-
- All Implemented Interfaces:
junit.framework.Test
public abstract class AbstractCompilerTest extends org.codehaus.plexus.PlexusTestCase
-
-
Constructor Summary
Constructors Constructor Description AbstractCompilerTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected int
compilerErrorCount(java.util.List<CompilerMessage> messages)
protected void
configureCompilerConfig(CompilerConfiguration compilerConfig)
protected int
expectedErrors()
protected java.util.Collection<java.lang.String>
expectedOutputFiles()
protected int
expectedWarnings()
protected java.util.List<java.lang.String>
getClasspath()
protected java.lang.String
getJavaVersion()
protected java.io.File
getLocalArtifactPath(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
protected java.io.File
getLocalArtifactPath(org.apache.maven.artifact.Artifact artifact)
protected abstract java.lang.String
getRoleHint()
java.lang.String
getSourceVersion()
java.lang.String
getTargetVersion()
protected void
setCompilerDebug(boolean flag)
protected void
setCompilerDeprecationWarnings(boolean flag)
void
setForceJavacCompilerUse(boolean forceJavacCompilerUse)
protected void
setUp()
void
testCompilingSources()
-
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, 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
-
getLocalArtifactPath
protected java.io.File getLocalArtifactPath(org.apache.maven.artifact.Artifact artifact)
-
setUp
protected void setUp() throws java.lang.Exception
- Overrides:
setUp
in classorg.codehaus.plexus.PlexusTestCase
- Throws:
java.lang.Exception
-
getRoleHint
protected abstract java.lang.String getRoleHint()
-
setCompilerDebug
protected void setCompilerDebug(boolean flag)
-
setCompilerDeprecationWarnings
protected void setCompilerDeprecationWarnings(boolean flag)
-
setForceJavacCompilerUse
public void setForceJavacCompilerUse(boolean forceJavacCompilerUse)
-
getClasspath
protected java.util.List<java.lang.String> getClasspath() throws java.lang.Exception
- Throws:
java.lang.Exception
-
configureCompilerConfig
protected void configureCompilerConfig(CompilerConfiguration compilerConfig)
-
testCompilingSources
public void testCompilingSources() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTargetVersion
public java.lang.String getTargetVersion()
-
getSourceVersion
public java.lang.String getSourceVersion()
-
compilerErrorCount
protected int compilerErrorCount(java.util.List<CompilerMessage> messages)
-
expectedErrors
protected int expectedErrors()
-
expectedWarnings
protected int expectedWarnings()
-
expectedOutputFiles
protected java.util.Collection<java.lang.String> expectedOutputFiles()
-
getLocalArtifactPath
protected java.io.File getLocalArtifactPath(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
-
getJavaVersion
protected java.lang.String getJavaVersion()
-
-