...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
http().client(mockAppClient).send().get("therapeuticExclusion/v2/therapeuticExclusions/${patientSsin}")
.queryParam("hcPartySsin", "${hcPartySsin}")
.header("Authorization", "Bearer " + authToken).accept(ContentType.APPLICATION_JSON.getMimeType());
http().client(mockAppClient).receive().response(HttpStatus.OK).messageType(MessageType.JSON)
.validate("$[:1].patient.identifier[:1].value", "${patientSsin}")
.validate("$[:1].hcParty.identifier[?(@.type=='ssin')]", "${hcPartySsin}") |
Within the project, you can find the code using Citrus in the REST project, in the Assertion module, under src/test/java/be/cetic/M2/features
This part of the project is made to design new test cases and should not be modified by Software vendors.
Further information
Citrus has a pretty well made and complete documentation including examples on their website : https://citrusframework.org/citrus/reference/2.8.0/html/index.html