|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.codehaus.modello.AbstractModelloGeneratorTest
org.codehaus.modello.AbstractModelloJavaGeneratorTest
public abstract class AbstractModelloJavaGeneratorTest
Base class for unit-tests of Modello plugins that generate java code.
Field Summary |
---|
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
protected |
AbstractModelloJavaGeneratorTest(String name)
|
Method Summary | |
---|---|
protected void |
addClassPathFile(File file)
|
void |
addDependency(String groupId,
String artifactId,
String version)
|
protected void |
assertGeneratedFileExists(String filename)
|
protected void |
compile(File generatedSources,
File destinationDirectory)
|
protected void |
compile(File generatedSources,
File destinationDirectory,
boolean useJava5)
|
List |
getClasspath()
|
protected List |
getClassPathElements()
|
protected File |
getDepedencyFile(String groupId,
String artifactId,
String version)
|
protected String |
getModelloVersion()
|
protected File |
getOutputClasses()
|
protected File |
getOutputDirectory()
|
protected void |
printClasspath(URLClassLoader classLoader)
|
protected void |
setUp()
|
protected void |
verify(String className,
String testName)
|
Methods inherited from class org.codehaus.modello.AbstractModelloGeneratorTest |
---|
getName, getXmlResourceReader |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown |
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, run, run, runBare, runTest, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractModelloJavaGeneratorTest(String name)
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class AbstractModelloGeneratorTest
Exception
protected File getOutputDirectory()
getOutputDirectory
in class AbstractModelloGeneratorTest
protected File getOutputClasses()
public void addDependency(String groupId, String artifactId, String version) throws MalformedURLException
MalformedURLException
protected File getDepedencyFile(String groupId, String artifactId, String version)
public List getClasspath()
protected String getModelloVersion() throws IOException
IOException
protected void compile(File generatedSources, File destinationDirectory) throws IOException, org.codehaus.plexus.compiler.CompilerException
IOException
org.codehaus.plexus.compiler.CompilerException
protected void compile(File generatedSources, File destinationDirectory, boolean useJava5) throws IOException, org.codehaus.plexus.compiler.CompilerException
IOException
org.codehaus.plexus.compiler.CompilerException
protected void verify(String className, String testName) throws MalformedURLException
MalformedURLException
protected void addClassPathFile(File file) throws MalformedURLException
MalformedURLException
protected void printClasspath(URLClassLoader classLoader)
protected void assertGeneratedFileExists(String filename)
protected List getClassPathElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |