Package org.wildfly.plugin.tests
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
ConstructorsModifierConstructorDescriptionprotectedAbstractProvisionConfiguredMojoTestCase(String artifactId) -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()protected PathcheckAndGetWildFlyHome(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens) protected voidcheckDeployment(Path dir, String fileName, String deploymentName) voidcheckDomainWildFlyHome(Path wildflyHome, int numDeployments, boolean stateRecorded, String... configTokens) protected voidcheckJar(Path dir, String fileName, String deploymentName, boolean expectDeployment, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens) voidcheckStandaloneWildFlyHome(Path wildflyHome, int numDeployments, String[] layers, String[] excludedLayers, boolean stateRecorded, String... configTokens) protected booleanprotected voidprotected static Stringprotected org.apache.maven.plugin.MojolookupConfiguredMojo(File pom, String goal) protected org.apache.maven.plugin.MojolookupConfiguredMojo(Path pom, String goal) protected org.apache.maven.execution.MavenSessionprotected org.apache.maven.execution.MavenSessionnewMavenSession(org.apache.maven.project.MavenProject project) protected ProcessstartServer(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, 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, tearDown, 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
-
AbstractProvisionConfiguredMojoTestCase
-
-
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:
newMavenSessionin classorg.apache.maven.plugin.testing.AbstractMojoTestCase
-
lookupConfiguredMojo
- Throws:
Exception
-
lookupConfiguredMojo
- Throws:
Exception
-
before
- 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
- Throws:
Exception
-
createUrl
-
checkURL
-
checkURL
protected void checkURL(Path dir, String fileName, String url, boolean start, String... args) throws Exception - Throws:
Exception
-
startServer
- Throws:
Exception
-