Class AbstractProvisionConfiguredMojoTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.wildfly.plugin.tests.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.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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
     
    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
     
    protected org.apache.maven.plugin.Mojo
     
    protected org.apache.maven.execution.MavenSession
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractProvisionConfiguredMojoTestCase

      protected AbstractProvisionConfiguredMojoTestCase(String artifactId)
  • Method Details

    • 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
    • lookupConfiguredMojo

      protected org.apache.maven.plugin.Mojo lookupConfiguredMojo(Path pom, String goal) throws Exception
      Throws:
      Exception
    • before

      public void before() 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
    • checkJar

      protected void checkJar(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens) throws Exception
      Throws:
      Exception
    • checkAndGetWildFlyHome

      protected Path checkAndGetWildFlyHome(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens) throws Exception
      Throws:
      Exception
    • checkDeployment

      protected void checkDeployment(Path dir, String fileName, String deploymentName) throws Exception
      Throws:
      Exception
    • createUrl

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

      protected boolean checkURL(String url)
    • checkURL

      protected void checkURL(Path dir, String fileName, String url, boolean start, String... args) throws Exception
      Throws:
      Exception
    • startServer

      protected Process startServer(Path dir, String fileName, String... args) throws Exception
      Throws:
      Exception