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
-
-
Constructor Summary
Constructors Constructor Description GenerateTestsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
List<String>
getExcludedFiles()
List<String>
getIgnoredFiles()
boolean
isAssertJsonSize()
Map<String,String>
mappingsToMap()
void
setAssertJsonSize(boolean assertJsonSize)
void
setExcludedFiles(List<String> excludedFiles)
void
setIgnoredFiles(List<String> ignoredFiles)
-
-
-
Method Detail
-
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
-
isAssertJsonSize
public boolean isAssertJsonSize()
-
setAssertJsonSize
public void setAssertJsonSize(boolean assertJsonSize)
-
-