Class AbstractTychoMojoTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.eclipse.tycho.testing.AbstractTychoMojoTestCase
All Implemented Interfaces:
junit.framework.Test

public class AbstractTychoMojoTestCase extends org.apache.maven.plugin.testing.AbstractMojoTestCase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.Maven
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configureMojoWithDefaultConfiguration(org.apache.maven.plugin.Mojo mojo, org.apache.maven.execution.MavenSession session, String goal)
    Configures the given mojo according to the specified goal of the given session.
    protected static File
     
    protected String
     
    protected org.apache.maven.artifact.repository.ArtifactRepository
     
    protected org.apache.maven.project.MavenProject
    getProject(List<org.apache.maven.project.MavenProject> projects, String artifactId)
     
    protected org.apache.maven.project.MavenProject
    getProjectWithArtifactId(List<org.apache.maven.project.MavenProject> projects, String artifactId)
     
    protected org.apache.maven.project.MavenProject
    getProjectWithName(List<org.apache.maven.project.MavenProject> projects, String name)
     
    protected List<org.apache.maven.project.MavenProject>
     
    protected List<org.apache.maven.project.MavenProject>
    getSortedProjects(File basedir, Properties userProperties)
     
    protected org.apache.maven.plugin.Mojo
    lookupMojo(String goal, File pom)
     
    protected org.apache.maven.plugin.Mojo
    lookupMojoWithDefaultConfiguration(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, String goal)
    Returns a mojo configured with the mojo's default configuration.
    protected org.apache.maven.execution.MavenExecutionRequest
     
    protected org.apache.maven.execution.MavenSession
    newMavenSession(org.apache.maven.project.MavenProject project, List<org.apache.maven.project.MavenProject> projects)
     
    protected void
     
    protected void
     

    Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase

    addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject

    Methods inherited from class org.codehaus.plexus.PlexusTestCase

    customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, 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, getName, 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

    • maven

      protected org.apache.maven.Maven maven
  • Constructor Details

    • AbstractTychoMojoTestCase

      public AbstractTychoMojoTestCase()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
      Throws:
      Exception
    • tearDown

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

      protected String getCustomConfigurationName()
      Overrides:
      getCustomConfigurationName in class org.codehaus.plexus.PlexusTestCase
    • lookupMojo

      protected org.apache.maven.plugin.Mojo lookupMojo(String goal, File pom) throws Exception
      Overrides:
      lookupMojo in class org.apache.maven.plugin.testing.AbstractMojoTestCase
      Throws:
      Exception
    • getLocalRepository

      protected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository() throws Exception
      Throws:
      Exception
    • newMavenExecutionRequest

      protected org.apache.maven.execution.MavenExecutionRequest newMavenExecutionRequest(File pom) throws Exception
      Throws:
      Exception
    • getSortedProjects

      protected List<org.apache.maven.project.MavenProject> getSortedProjects(File basedir) throws Exception
      Throws:
      Exception
    • getSortedProjects

      protected List<org.apache.maven.project.MavenProject> getSortedProjects(File basedir, Properties userProperties) throws Exception
      Throws:
      Exception
    • newMavenSession

      protected org.apache.maven.execution.MavenSession newMavenSession(org.apache.maven.project.MavenProject project, List<org.apache.maven.project.MavenProject> projects) throws Exception
      Throws:
      Exception
    • getProject

      protected org.apache.maven.project.MavenProject getProject(List<org.apache.maven.project.MavenProject> projects, String artifactId)
    • getProjectWithArtifactId

      protected org.apache.maven.project.MavenProject getProjectWithArtifactId(List<org.apache.maven.project.MavenProject> projects, String artifactId) throws AssertionError, Exception
      Throws:
      AssertionError
      Exception
    • getProjectWithName

      protected org.apache.maven.project.MavenProject getProjectWithName(List<org.apache.maven.project.MavenProject> projects, String name) throws AssertionError, Exception
      Throws:
      AssertionError
      Exception
    • lookupMojoWithDefaultConfiguration

      protected org.apache.maven.plugin.Mojo lookupMojoWithDefaultConfiguration(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, String goal) throws Exception
      Returns a mojo configured with the mojo's default configuration.
      Throws:
      Exception
    • configureMojoWithDefaultConfiguration

      protected void configureMojoWithDefaultConfiguration(org.apache.maven.plugin.Mojo mojo, org.apache.maven.execution.MavenSession session, String goal) throws Exception
      Configures the given mojo according to the specified goal of the given session.

      Especially this also initializes each Parameter of the mojo with its default values.

      Throws:
      Exception
    • getBasedir

      protected static File getBasedir(String name) throws IOException
      Throws:
      IOException