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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void before()  
      protected Path checkAndGetWildFlyHome​(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens)  
      protected void checkDeployment​(Path dir, String fileName, String deploymentName)  
      void checkDomainWildFlyHome​(Path wildflyHome, int numDeployments, boolean stateRecorded, String... configTokens)  
      protected void checkJar​(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens)  
      void checkStandaloneWildFlyHome​(Path wildflyHome, int numDeployments, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens)  
      protected boolean checkURL​(String url)  
      protected void checkURL​(Path dir, String fileName, String url, boolean start, String... args)  
      protected static String createUrl​(int port, String... paths)  
      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)  
      protected Process startServer​(Path dir, String fileName, String... args)  
      • 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
      • createUrl

        protected static String createUrl​(int port,
                                          String... paths)
      • checkURL

        protected boolean checkURL​(String url)