org.codehaus.modello
Class AbstractModelloGeneratorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.codehaus.modello.AbstractModelloTest
                  extended by org.codehaus.modello.AbstractModelloGeneratorTest
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractModelloGeneratorTest
extends AbstractModelloTest

Version:
$Id: AbstractModelloGeneratorTest.java 795 2007-02-08 08:50:51Z brett $
Author:
Trygve Laugstøl

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
protected AbstractModelloGeneratorTest(java.lang.String name)
           
 
Method Summary
protected  void addClassPathFile(java.io.File file)
           
 void addDependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
protected  void assertGeneratedFileExists(java.lang.String filename)
           
protected  void compile(java.io.File generatedSources, java.io.File destinationDirectory)
           
 java.util.List getClasspath()
           
protected  java.util.List getClassPathElements()
           
protected  java.io.File getDepedencyFile(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
protected  java.io.File getGeneratedSources()
           
 java.lang.String getName()
           
protected  void printClasspath(java.net.URLClassLoader classLoader)
           
protected  void setUp()
           
protected  void verify(java.lang.String className, java.lang.String testName)
           
 
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
countTestCases, createResult, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractModelloGeneratorTest

protected AbstractModelloGeneratorTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
java.lang.Exception

getGeneratedSources

protected java.io.File getGeneratedSources()

addDependency

public void addDependency(java.lang.String groupId,
                          java.lang.String artifactId,
                          java.lang.String version)
                   throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getDepedencyFile

protected java.io.File getDepedencyFile(java.lang.String groupId,
                                        java.lang.String artifactId,
                                        java.lang.String version)

getName

public java.lang.String getName()
Overrides:
getName in class junit.framework.TestCase

getClasspath

public java.util.List getClasspath()

compile

protected void compile(java.io.File generatedSources,
                       java.io.File destinationDirectory)
                throws java.io.IOException,
                       org.codehaus.plexus.compiler.CompilerException
Throws:
java.io.IOException
org.codehaus.plexus.compiler.CompilerException

verify

protected void verify(java.lang.String className,
                      java.lang.String testName)
               throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

addClassPathFile

protected void addClassPathFile(java.io.File file)
                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

printClasspath

protected void printClasspath(java.net.URLClassLoader classLoader)

assertGeneratedFileExists

protected void assertGeneratedFileExists(java.lang.String filename)

getClassPathElements

protected java.util.List getClassPathElements()


Copyright © 2001-2011 Codehaus. All Rights Reserved.