public abstract class AbstractModelloJavaGeneratorTest extends AbstractModelloGeneratorTest
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractModelloJavaGeneratorTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassPathFile(File file) |
protected void |
addDependency(String groupId,
String artifactId) |
protected void |
assertGeneratedFileExists(String filename) |
protected void |
compileGeneratedSources() |
protected void |
compileGeneratedSources(boolean useJava5) |
protected void |
compileGeneratedSources(String verifierId) |
protected void |
compileGeneratedSources(String verifierId,
boolean useJava5) |
List<File> |
getClasspath() |
protected List<String> |
getClassPathElements() |
protected File |
getDependencyFile(String groupId,
String artifactId) |
protected String |
getModelloVersion() |
protected File |
getOutputClasses() |
protected File |
getOutputDirectory() |
protected void |
printClasspath(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(String verifierClassName)
Run a verifier class in a classloader context where compiled generated sources are available
|
getModelloParameters, getModelloParameters, getModelloParameters, getName, getXmlResourceReadercustomizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDownassertEquals, 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, toStringprotected AbstractModelloJavaGeneratorTest(String name)
protected void setUp()
throws Exception
setUp in class AbstractModelloGeneratorTestExceptionprotected File getOutputDirectory()
getOutputDirectory in class AbstractModelloGeneratorTestprotected File getOutputClasses()
protected String getModelloVersion() throws IOException
IOExceptionprotected void compileGeneratedSources()
throws IOException,
org.codehaus.plexus.compiler.CompilerException
IOExceptionorg.codehaus.plexus.compiler.CompilerExceptionprotected void compileGeneratedSources(boolean useJava5)
throws IOException,
org.codehaus.plexus.compiler.CompilerException
IOExceptionorg.codehaus.plexus.compiler.CompilerExceptionprotected void compileGeneratedSources(String verifierId) throws IOException, org.codehaus.plexus.compiler.CompilerException
IOExceptionorg.codehaus.plexus.compiler.CompilerExceptionprotected void compileGeneratedSources(String verifierId, boolean useJava5) throws IOException, org.codehaus.plexus.compiler.CompilerException
IOExceptionorg.codehaus.plexus.compiler.CompilerExceptionprotected void verifyCompiledGeneratedSources(String verifierClassName) throws MalformedURLException
verifierClassName - the class name of the verifier classMalformedURLExceptionprotected void addClassPathFile(File file)
protected void printClasspath(URLClassLoader classLoader)
protected void assertGeneratedFileExists(String filename)
protected boolean skipJava5FeatureTest()
true if Java 5 is not available, then feature test should be skipped by callerCopyright © 2001-2016 Codehaus. All Rights Reserved.