Class ConfigurationTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
test.de.iip_ecosphere.platform.configuration.maven.AbstractTest
test.de.iip_ecosphere.platform.configuration.maven.ConfigurationTest
- All Implemented Interfaces:
junit.framework.Test
Test for the configuration Mojos.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertBase(org.apache.maven.project.MavenProject project, String goal) Asserts basic configuration Mojo properties.private voidassertBase(org.apache.maven.project.MavenProject project, String goal, String expectedStartRule) Asserts basic configuration Mojo properties.protected voidsetUp()protected voidtearDown()voidTests the configuration plugins without fully executing them as no IVML file is there.Methods inherited from class test.de.iip_ecosphere.platform.configuration.maven.AbstractTest
readMavenProjectMethods 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, 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, 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
-
ConfigurationTest
public ConfigurationTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classorg.apache.maven.plugin.testing.AbstractMojoTestCase- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classorg.codehaus.plexus.PlexusTestCase- Throws:
Exception
-
testNoIvml
Tests the configuration plugins without fully executing them as no IVML file is there.- Throws:
Exception- if the test fails
-
assertBase
private void assertBase(org.apache.maven.project.MavenProject project, String goal) throws Exception Asserts basic configuration Mojo properties. Tries executing the Mojo. Usesgoalas expected VIL start rule name.- Parameters:
project- the Maven project to obtain the Mojo fromgoal- the Maven goal to look for- Throws:
Exception- if execution fails- See Also:
-
assertBase
private void assertBase(org.apache.maven.project.MavenProject project, String goal, String expectedStartRule) throws Exception Asserts basic configuration Mojo properties. Tries executing the Mojo.- Parameters:
project- the Maven project to obtain the Mojo fromgoal- the Maven goal to look forexpectedStartRule- the expected start rule- Throws:
Exception- if execution fails
-