Class GenerateTestsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.cloud.contract.maven.verifier.GenerateTestsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generateTests",
defaultPhase=GENERATE_TEST_SOURCES,
requiresDependencyResolution=TEST)
public class GenerateTestsMojo
extends org.apache.maven.plugin.AbstractMojo
From the provided directory with contracts generates the acceptance tests on the
producer side.
- Author:
- Mariusz Smykula
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
boolean
void
setAssertJsonSize
(boolean assertJsonSize) void
setExcludedFiles
(List<String> excludedFiles) void
setIgnoredFiles
(List<String> ignoredFiles) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
GenerateTestsMojo
public GenerateTestsMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
mappingsToMap
-
getExcludedFiles
-
setExcludedFiles
-
getIgnoredFiles
-
setIgnoredFiles
-
isAssertJsonSize
public boolean isAssertJsonSize() -
setAssertJsonSize
public void setAssertJsonSize(boolean assertJsonSize)
-