Class AbstractModelloJavaGeneratorTest

java.lang.Object
org.codehaus.modello.AbstractModelloGeneratorTest
org.codehaus.modello.AbstractModelloJavaGeneratorTest
All Implemented Interfaces:
org.codehaus.plexus.testing.PlexusTestConfiguration

  • Constructor Details

    • AbstractModelloJavaGeneratorTest

      protected AbstractModelloJavaGeneratorTest(String name)
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class AbstractModelloGeneratorTest
      Throws:
      Exception
    • getOutputDirectory

      protected File getOutputDirectory()
      Overrides:
      getOutputDirectory in class AbstractModelloGeneratorTest
    • getOutputClasses

      protected File getOutputClasses()
    • addDependency

      protected void addDependency(String groupId, String artifactId)
    • getDependencyFile

      protected File getDependencyFile(String groupId, String artifactId)
    • getClasspath

      public List<File> getClasspath()
    • getModelloVersion

      protected String getModelloVersion() throws IOException
      Throws:
      IOException
    • compileGeneratedSources

      protected void compileGeneratedSources() throws IOException, org.codehaus.plexus.compiler.CompilerException
      Throws:
      IOException
      org.codehaus.plexus.compiler.CompilerException
    • compileGeneratedSources

      protected void compileGeneratedSources(int minJavaSource) throws IOException, org.codehaus.plexus.compiler.CompilerException
      Throws:
      IOException
      org.codehaus.plexus.compiler.CompilerException
    • compileGeneratedSources

      protected void compileGeneratedSources(String verifierId, int minJavaSource) throws IOException, org.codehaus.plexus.compiler.CompilerException
      Throws:
      IOException
      org.codehaus.plexus.compiler.CompilerException
    • verifyCompiledGeneratedSources

      protected void verifyCompiledGeneratedSources(String verifierClassName)
      Run a verifier class in a classloader context where compiled generated sources are available
      Parameters:
      verifierClassName - the class name of the verifier class
    • addClassPathFile

      protected void addClassPathFile(File file)
    • printClasspath

      protected void printClasspath(URLClassLoader classLoader)
    • assertGeneratedFileExists

      protected void assertGeneratedFileExists(String filename)
    • getClassPathElements

      protected List<String> getClassPathElements()