Added missing target folder

This commit is contained in:
Marcin Grzejszczak
2016-07-13 14:42:50 +02:00
parent 719453e63f
commit 47f23c6ab7
4 changed files with 42 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ public class GenerateStubsMojo extends AbstractMojo {
private File createStubJar(File stubsOutputDir) throws MojoFailureException, MojoExecutionException {
if (!stubsOutputDir.exists()) {
throw new MojoExecutionException("Stubs could not be found: " + stubsOutputDir.getAbsolutePath() + ".\nPlease make sure that spring-cloud-contract-verifier:convert was invoked");
throw new MojoExecutionException("Stubs could not be found: [" + stubsOutputDir.getAbsolutePath() + "] .\nPlease make sure that spring-cloud-contract-verifier:convert was invoked");
}
String stubArchiveName = project.getBuild().getFinalName() + "-" + classifier + ".jar";
File stubsJarFile = new File(projectBuildDirectory, stubArchiveName);

View File

@@ -0,0 +1 @@
!target

View File

@@ -0,0 +1,18 @@
io.codearte.accurest.dsl.GroovyDsl.make {
request {
method 'POST'
url('/users') {
}
headers {
header 'Content-Type': 'application/json'
}
body '''{ "login" : "john", "name": "John The Contract" }'''
}
response {
status 200
headers {
header 'Location': '/users/john'
}
}
}

View File

@@ -0,0 +1,22 @@
{
"request" : {
"url" : "/users",
"method" : "POST",
"bodyPatterns" : [ {
"matchesJsonPath" : "$[?(@.login == 'john')]"
}, {
"matchesJsonPath" : "$[?(@.name == 'John The Contract')]"
} ],
"headers" : {
"Content-Type" : {
"equalTo" : "application/json"
}
}
},
"response" : {
"status" : 200,
"headers" : {
"Location" : "/users/john"
}
}
}