configurable contracts directory

This commit is contained in:
Mariusz Smykula
2016-03-27 07:38:11 +02:00
parent 0c69a9dd2f
commit 60bc33b157
5 changed files with 52 additions and 2 deletions

View File

@@ -32,6 +32,13 @@ public class PluginUnitTest {
assertFilesPresent(basedir, "target/foo/Sample.json");
}
@Test
public void shouldGenerateWiremockStubsInSelectedLocation2() throws Exception {
File basedir = resources.getBasedir("customContractsLocation");
maven.executeMojo(basedir, "generateStubs", TestMavenRuntime.newParameter("contractsDir", "src/foo"));
assertFilesPresent(basedir, "target/mappings/Sample.json");
}
@Test
public void shouldGenerateContractSpecificationInDefaultLocation() throws Exception {
File basedir = resources.getBasedir("basic");