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

public class ConfigurationTest extends AbstractTest
Test for the configuration Mojos.
Author:
Holger Eichelberger, SSE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    assertBase(org.apache.maven.project.MavenProject project, String goal)
    Asserts basic configuration Mojo properties.
    private void
    assertBase(org.apache.maven.project.MavenProject project, String goal, String expectedStartRule)
    Asserts basic configuration Mojo properties.
    protected void
     
    protected void
     
    void
    Tests 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

    readMavenProject

    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, setupContainer, setupContainerConfiguration, setVariableValueToObject

    Methods 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, 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
  • Constructor Details

    • ConfigurationTest

      public ConfigurationTest()
  • 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
    • testNoIvml

      public void testNoIvml() throws Exception
      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. Uses goal as expected VIL start rule name.
      Parameters:
      project - the Maven project to obtain the Mojo from
      goal - 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 from
      goal - the Maven goal to look for
      expectedStartRule - the expected start rule
      Throws:
      Exception - if execution fails