public abstract class AbstractModelloJavaGeneratorTest extends AbstractModelloGeneratorTest
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
classPathElements |
private java.util.List<java.io.File> |
dependencies |
private java.util.List<java.net.URL> |
urls |
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelloJavaGeneratorTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addClassPathFile(java.io.File file) |
protected void |
addDependency(java.lang.String groupId,
java.lang.String artifactId) |
protected void |
assertGeneratedFileExists(java.lang.String filename) |
protected void |
compileGeneratedSources() |
protected void |
compileGeneratedSources(boolean useJava5) |
protected void |
compileGeneratedSources(java.lang.String verifierId) |
protected void |
compileGeneratedSources(java.lang.String verifierId,
boolean useJava5) |
java.util.List<java.io.File> |
getClasspath() |
protected java.util.List<java.lang.String> |
getClassPathElements() |
protected java.io.File |
getDependencyFile(java.lang.String groupId,
java.lang.String artifactId) |
protected java.lang.String |
getModelloVersion() |
protected java.io.File |
getOutputClasses() |
protected java.io.File |
getOutputDirectory() |
protected void |
printClasspath(java.net.URLClassLoader classLoader) |
protected void |
setUp() |
protected boolean |
skipJava5FeatureTest()
Check if a Java 5 feature test should be skipped, since it is not supported by current test environment.
|
protected void |
verifyCompiledGeneratedSources(java.lang.String verifierClassName)
Run a verifier class in a classloader context where compiled generated sources are available
|
getModelloParameters, getModelloParameters, getModelloParameters, getName, getXmlResourceReader
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown
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, run, run, runBare, runTest, setName, toString
private java.util.List<java.io.File> dependencies
private java.util.List<java.net.URL> urls
private java.util.List<java.lang.String> classPathElements
protected AbstractModelloJavaGeneratorTest(java.lang.String name)
protected void setUp() throws java.lang.Exception
setUp
in class AbstractModelloGeneratorTest
java.lang.Exception
protected java.io.File getOutputDirectory()
getOutputDirectory
in class AbstractModelloGeneratorTest
protected java.io.File getOutputClasses()
protected void addDependency(java.lang.String groupId, java.lang.String artifactId)
protected java.io.File getDependencyFile(java.lang.String groupId, java.lang.String artifactId)
public java.util.List<java.io.File> getClasspath()
protected java.lang.String getModelloVersion() throws java.io.IOException
java.io.IOException
protected void compileGeneratedSources() throws java.io.IOException, org.codehaus.plexus.compiler.CompilerException
java.io.IOException
org.codehaus.plexus.compiler.CompilerException
protected void compileGeneratedSources(boolean useJava5) throws java.io.IOException, org.codehaus.plexus.compiler.CompilerException
java.io.IOException
org.codehaus.plexus.compiler.CompilerException
protected void compileGeneratedSources(java.lang.String verifierId) throws java.io.IOException, org.codehaus.plexus.compiler.CompilerException
java.io.IOException
org.codehaus.plexus.compiler.CompilerException
protected void compileGeneratedSources(java.lang.String verifierId, boolean useJava5) throws java.io.IOException, org.codehaus.plexus.compiler.CompilerException
java.io.IOException
org.codehaus.plexus.compiler.CompilerException
protected void verifyCompiledGeneratedSources(java.lang.String verifierClassName)
verifierClassName
- the class name of the verifier classprotected void addClassPathFile(java.io.File file)
protected void printClasspath(java.net.URLClassLoader classLoader)
protected void assertGeneratedFileExists(java.lang.String filename)
protected boolean skipJava5FeatureTest()
true
if Java 5 is not available, then feature test should be skipped by callerprotected java.util.List<java.lang.String> getClassPathElements()