Class AbstractProvisionConfiguredMojoTestCase

  • All Implemented Interfaces:
    junit.framework.Test

    public abstract class AbstractProvisionConfiguredMojoTestCase
    extends org.apache.maven.plugin.testing.AbstractMojoTestCase
    A class to construct a properly configured MOJO.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void before()  
      void checkDomainWildFlyHome​(Path wildflyHome, int numDeployments, boolean stateRecorded, String... configTokens)  
      void checkStandaloneWildFlyHome​(Path wildflyHome, int numDeployments, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens)  
      protected org.apache.maven.plugin.Mojo lookupConfiguredMojo​(File pom, String goal)  
      protected org.apache.maven.execution.MavenSession newMavenSession()  
      protected org.apache.maven.execution.MavenSession newMavenSession​(org.apache.maven.project.MavenProject project)  
      • 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, newMojoExecution, setUp, 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, tearDown, 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
    • Constructor Detail

      • AbstractProvisionConfiguredMojoTestCase

        protected AbstractProvisionConfiguredMojoTestCase​(String artifactId)
    • Method Detail

      • newMavenSession

        protected org.apache.maven.execution.MavenSession newMavenSession()
      • newMavenSession

        protected org.apache.maven.execution.MavenSession newMavenSession​(org.apache.maven.project.MavenProject project)
        Overrides:
        newMavenSession in class org.apache.maven.plugin.testing.AbstractMojoTestCase
      • lookupConfiguredMojo

        protected org.apache.maven.plugin.Mojo lookupConfiguredMojo​(File pom,
                                                                    String goal)
                                                             throws Exception
        Throws:
        Exception
      • checkStandaloneWildFlyHome

        public void checkStandaloneWildFlyHome​(Path wildflyHome,
                                               int numDeployments,
                                               String[] layers,
                                               String[] excludedLayers,
                                               boolean stateRecorded,
                                               String... configTokens)
                                        throws Exception
        Throws:
        Exception
      • checkDomainWildFlyHome

        public void checkDomainWildFlyHome​(Path wildflyHome,
                                           int numDeployments,
                                           boolean stateRecorded,
                                           String... configTokens)
                                    throws Exception
        Throws:
        Exception