Updated wrong manifest creation

This commit is contained in:
Marcin Grzejszczak
2016-08-03 06:59:40 -07:00
parent 88429ceada
commit e0f206689e
2 changed files with 3 additions and 2 deletions

View File

@@ -135,7 +135,8 @@ public class WiremockForDocsMockServerApplicationTests {
public void contextLoads() throws Exception {
// will read stubs classpath
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate)
.baseUrl("http://example.org").stubs("classpath:/stubs/resource.json");
.baseUrl("http://example.org").stubs("classpath:/stubs/resource.json")
.build();
// We're asserting if WireMock responded properly
assertThat(this.service.go()).isEqualTo("Hello World");
server.verify();

View File

@@ -29,7 +29,7 @@ class ManifestCreator {
Plugin verifierMavenPlugin = findMavenPlugin(project.getBuildPlugins());
if (verifierMavenPlugin != null) {
manifest.addConfiguredAttribute(new Manifest.Attribute(
"Spring-Cloud-Contract-Verifier-Maven-Plugin-Version", verifierMavenPlugin.getVersion()));
"Spring-Cloud-Contract-Maven-Plugin-Version", verifierMavenPlugin.getVersion()));
}
if (verifierMavenPlugin != null && !verifierMavenPlugin.getDependencies().isEmpty()) {
Dependency verifierDependency = findVerifierDependency(verifierMavenPlugin.getDependencies());