Class AbstractModelloJavaGeneratorTest
java.lang.Object
org.codehaus.modello.AbstractModelloGeneratorTest
org.codehaus.modello.AbstractModelloJavaGeneratorTest
- All Implemented Interfaces:
org.codehaus.plexus.testing.PlexusTestConfiguration
Base class for unit-tests of Modello plugins that generate java code.
- Author:
- Trygve Laugstøl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddClassPathFile(File file) protected voidassertGeneratedFileExists(String filename) protected voidprotected voidcompileGeneratedSources(int minJavaSource) protected voidcompileGeneratedSources(String verifierId, int minJavaSource) protected Fileprotected Fileprotected voidprintClasspath(URLClassLoader classLoader) voidsetUp()protected voidverifyCompiledGeneratedSources(String verifierClassName) Run a verifier class in a classloader context where compiled generated sources are availableMethods inherited from class AbstractModelloGeneratorTest
createSaxParserWithSchema, customizeConfiguration, getModelloParameters, getModelloParameters, getModelloParameters, getName, getXmlResourceReaderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.testing.PlexusTestConfiguration
customizeContainer
-
Constructor Details
-
AbstractModelloJavaGeneratorTest
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractModelloGeneratorTest- Throws:
Exception
-
getOutputDirectory
- Overrides:
getOutputDirectoryin classAbstractModelloGeneratorTest
-
getOutputClasses
-
compileGeneratedSources
- Throws:
IOException
-
compileGeneratedSources
- Throws:
IOException
-
compileGeneratedSources
- Throws:
IOException
-
verifyCompiledGeneratedSources
Run a verifier class in a classloader context where compiled generated sources are available- Parameters:
verifierClassName- the class name of the verifier class
-
addClassPathFile
-
printClasspath
-
assertGeneratedFileExists
-
getClassPathElements
-