Class AbstractTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
test.de.iip_ecosphere.platform.tools.maven.dependencies.AbstractTest
- All Implemented Interfaces:
junit.framework.Test
public class AbstractTest
extends org.apache.maven.plugin.testing.AbstractMojoTestCase
Abstract basic Mojo test for missing functionality in Mvn test harness.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors Constructor Description AbstractTest() -
Method Summary
Modifier and Type Method Description protected org.apache.maven.project.MavenProjectreadMavenProject(java.io.File basedir)Reads the maven project inbasedir.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, lookupMojo, newMavenSession, newMojoExecution, setUp, setupContainer, setupContainerConfiguration, setVariableValueToObjectMethods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainerMethods 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
-
Constructor Details
-
AbstractTest
public AbstractTest()
-
-
Method Details
-
readMavenProject
protected org.apache.maven.project.MavenProject readMavenProject(java.io.File basedir) throws org.apache.maven.project.ProjectBuildingException, java.lang.ExceptionReads the maven project inbasedir.- Parameters:
basedir- the project base dir- Returns:
- the maven project instance
- Throws:
org.apache.maven.project.ProjectBuildingException- if the project cannot be buildjava.lang.Exception- if the project cannot be build
-