Package org.wildfly.plugin.tests
Class AbstractWildFlyMojoTest
- java.lang.Object
-
- org.wildfly.plugin.tests.AbstractWildFlyMojoTest
-
- Direct Known Subclasses:
AbstractWildFlyServerMojoTest
public abstract class AbstractWildFlyMojoTest extends Object
- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description AbstractWildFlyMojoTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathgetBaseDir()static PathgetPomFile(String fileName)<T extends org.apache.maven.plugin.Mojo>
TlookupMojoAndVerify(String goal, String fileName)Configures a MOJO based on the goal and the pom file then verifies the goal MOJO was found.MavenProjectreadMavenProject(Path pom)
-
-
-
Field Detail
-
rule
public MojoRule rule
-
-
Method Detail
-
lookupMojoAndVerify
public <T extends org.apache.maven.plugin.Mojo> T lookupMojoAndVerify(String goal, String fileName) throws Exception
Configures a MOJO based on the goal and the pom file then verifies the goal MOJO was found.- Parameters:
goal- the name of the goal being testedfileName- the name of the POM file to be used during testing- Returns:
- the MOJO object under test
- Throws:
AssertionError- if the MOJO was not foundException
-
getBaseDir
public static Path getBaseDir()
-
readMavenProject
public MavenProject readMavenProject(Path pom) throws Exception
- Throws:
Exception
-
-