diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 8c6a0c321b..20fbdd5027 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1241,7 +1241,7 @@ It’s really important that you understand the map notation to set up contr

a method PUT on an endpoint /fraudcheck

  • -

    JSON body with clientId matching the regular expression [0-9]{10} and loanAmount equal to 99999

    +

    JSON body with clientPesel matching the regular expression [0-9]{10} and loanAmount equal to 99999

  • and with a header Content-Type equal to application/vnd.fraud.v1+json

    @@ -1539,7 +1539,7 @@ public void validate_shouldMarkClientAsFraud() throws Exception { // given: MockMvcRequestSpecification request = given() .header("Content-Type", "application/vnd.fraud.v1+json") - .body("{\"clientId\":\"1234567890\",\"loanAmount\":99999}"); + .body("{\"clientPesel\":\"1234567890\",\"loanAmount\":99999}"); // when: ResponseOptions response = given().spec(request) @@ -2749,7 +2749,7 @@ class LoanApplicationServiceSpec extends Specification { def 'should successfully apply for loan'() { given: LoanApplication application = - new LoanApplication(client: new Client(pesel: '12345678901'), amount: 123.123) + new LoanApplication(client: new Client(clientPesel: '12345678901'), amount: 123.123) when: LoanApplicationResult loanApplication == sut.loanApplication(application) then: