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.
Author:
Trygve Laugstøl
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected SAXParser
     
    protected void
    customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
     
    protected Properties
     
    protected Properties
     
    protected Properties
    getModelloParameters(String version, Integer javaSource)
     
     
    protected File
     
    protected Reader
     
    protected void
     

    Methods inherited from class org.codehaus.plexus.PlexusTestCase

    customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown, teardownContainer

    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 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, Integer javaSource)
    • getXmlResourceReader

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

      protected SAXParser createSaxParserWithSchema(String generatedXsdName) throws ParserConfigurationException, SAXException
      Throws:
      ParserConfigurationException
      SAXException
    • customizeContainerConfiguration

      protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
      Overrides:
      customizeContainerConfiguration in class org.codehaus.plexus.PlexusTestCase