Class AbstractModelloGeneratorTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.codehaus.modello.AbstractModelloGeneratorTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractModelloJavaGeneratorTest

public abstract class AbstractModelloGeneratorTest extends org.codehaus.plexus.PlexusTestCase
Abstract class for Modello plugins unit-tests that check output generated by the plugin.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Properties
     
    protected Properties
     
    protected Properties
    getModelloParameters(String version, boolean useJava5)
     
     
    protected File
     
    protected Reader
     
    protected void
     

    Methods inherited from class org.codehaus.plexus.PlexusTestCase

    customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, 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
  • Field Details

  • Constructor Details

    • AbstractModelloGeneratorTest

      protected AbstractModelloGeneratorTest(String name)
  • Method Details

    • setUp

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

      protected File getOutputDirectory()
    • getName

      public String getName()
      Overrides:
      getName in class junit.framework.TestCase
    • getModelloParameters

      protected Properties getModelloParameters()
    • getModelloParameters

      protected Properties getModelloParameters(String version)
    • getModelloParameters

      protected Properties getModelloParameters(String version, boolean useJava5)
    • getXmlResourceReader

      protected Reader getXmlResourceReader(String name) throws IOException
      Throws:
      IOException