contract-testing-demo
pact and java contract testing with micro-commits
commit f06919b6d4bb854823a8dae23450f69f40f71c4a
parent bade1f84e06b85a3f4bb83c8dc91792518e8cd7d
Author: Jul <jul@9o.is>
Date: Wed, 26 Jun 2019 14:04:50 -0400
Create an alligator instance
Error:
java.lang.AssertionError:
0 - Expected a header 'Content-type' but was missing
1 - Expected a response type of 'application/json' but the actual
type was 'text/plain'
Diffstat:
| M | consumer-driven/animal-service/src/main/java/app/alligator/AlligatorController.java | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/consumer-driven/animal-service/src/main/java/app/alligator/AlligatorController.java b/consumer-driven/animal-service/src/main/java/app/alligator/AlligatorController.java @@ -7,5 +7,7 @@ import org.springframework.web.bind.annotation.RestController; public class AlligatorController { @GetMapping("/alligators/{name}") - public void getByName() {} + public Alligator getByName() { + return new Alligator(null); + } }