public abstract class AbstractWildFlyMojoTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BASE_CONFIG_DIR |
protected String |
DEPLOYMENT_NAME |
org.apache.maven.plugin.testing.MojoRule |
rule |
| Constructor and Description |
|---|
AbstractWildFlyMojoTest() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
getBaseDir() |
protected Deployment |
getDeployment()
Returns the deployment test.war from the test resources.
|
static Path |
getPomFile(String fileName) |
<T extends org.apache.maven.plugin.Mojo> |
lookupMojoAndVerify(String goal,
String fileName)
Configures a MOJO based on the goal and the pom file then verifies the goal MOJO was found.
|
org.apache.maven.project.MavenProject |
readMavenProject(Path pom) |
protected static void |
setDefaultEnvironment(org.apache.maven.plugin.Mojo instance) |
protected static void |
setValidSession(org.apache.maven.plugin.Mojo mojo) |
protected static void |
setValue(Object instance,
String name,
Object value) |
protected final String DEPLOYMENT_NAME
protected static final String BASE_CONFIG_DIR
public org.apache.maven.plugin.testing.MojoRule rule
protected Deployment getDeployment()
public <T extends org.apache.maven.plugin.Mojo> T lookupMojoAndVerify(String goal, String fileName) throws Exception
goal - the name of the goal being testedfileName - the name of the POM file to be used during testingAssertionError - if the MOJO was not foundExceptionpublic static Path getBaseDir()
public org.apache.maven.project.MavenProject readMavenProject(Path pom) throws Exception
Exceptionprotected static void setDefaultEnvironment(org.apache.maven.plugin.Mojo instance)
throws NoSuchFieldException,
IllegalAccessException
protected static void setValue(Object instance, String name, Object value) throws NoSuchFieldException, IllegalAccessException
protected static void setValidSession(org.apache.maven.plugin.Mojo mojo)
throws org.eclipse.aether.repository.NoLocalRepositoryManagerException,
NoSuchFieldException,
IllegalAccessException
org.eclipse.aether.repository.NoLocalRepositoryManagerExceptionNoSuchFieldExceptionIllegalAccessExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.