Class AbstractModelloGeneratorTest

  • All Implemented Interfaces:
    org.codehaus.plexus.testing.PlexusTestConfiguration
    Direct Known Subclasses:
    AbstractModelloJavaGeneratorTest

    public abstract class AbstractModelloGeneratorTest
    extends java.lang.Object
    implements org.codehaus.plexus.testing.PlexusTestConfiguration
    Abstract class for Modello plugins unit-tests that check output generated by the plugin.
    Author:
    Trygve Laugstøl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.xml.parsers.SAXParser createSaxParserWithSchema​(java.lang.String generatedXsdName)  
      void customizeConfiguration​(org.codehaus.plexus.ContainerConfiguration containerConfiguration)  
      protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters()  
      protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters​(java.lang.String version)  
      protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters​(java.lang.String version, java.lang.Integer javaSource)  
      java.lang.String getName()  
      protected java.io.File getOutputDirectory()  
      protected java.io.Reader getXmlResourceReader​(java.lang.String name)  
      void setUp()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.codehaus.plexus.testing.PlexusTestConfiguration

        customizeContainer
    • Constructor Detail

      • AbstractModelloGeneratorTest

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

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getOutputDirectory

        protected java.io.File getOutputDirectory()
      • getName

        public java.lang.String getName()
      • getModelloParameters

        protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters()
      • getModelloParameters

        protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters​(java.lang.String version)
      • getModelloParameters

        protected java.util.Map<java.lang.String,​java.lang.Object> getModelloParameters​(java.lang.String version,
                                                                                              java.lang.Integer javaSource)
      • getXmlResourceReader

        protected java.io.Reader getXmlResourceReader​(java.lang.String name)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • createSaxParserWithSchema

        protected javax.xml.parsers.SAXParser createSaxParserWithSchema​(java.lang.String generatedXsdName)
                                                                 throws javax.xml.parsers.ParserConfigurationException,
                                                                        org.xml.sax.SAXException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
      • customizeConfiguration

        public void customizeConfiguration​(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
        Specified by:
        customizeConfiguration in interface org.codehaus.plexus.testing.PlexusTestConfiguration