@@ -46,7 +46,7 @@ class EhrResendControllerTest {
4646 private static final String FROM_ASID_CODE = "test-from-asid" ;
4747 private static final String INCUMBENT_NACK_CODE = "99" ;
4848 private static final String INCUMBENT_NACK_DISPLAY = "Unexpected condition." ;
49- private static final String FORBIDDEN = "FORBIDDEN " ;
49+ private static final String CONFLICT = "CONFLICT " ;
5050 private static final String GPCONNECT_ERROR_OR_WARNING_CODE = "http://fhir.nhs.net/ValueSet/gpconnect-error-or-warning-code-1" ;
5151 private static final String INVALID_IDENTIFIER_VALUE = "INVALID_IDENTIFIER_VALUE" ;
5252 public static final String ISSUE_CODE_VALUE = "value" ;
@@ -144,8 +144,8 @@ void When_AnEhrExtractHasNotFailedAndAnotherResendRequestArrives_Expect_FailedOp
144144 JsonNode rootNode = objectMapper .readTree (response .getBody ());
145145
146146 assertAll (
147- () -> assertResponseHasExpectedOperationOutcome (rootNode , FORBIDDEN , DIAGNOSTICS_MSG , ISSUE_CODE_BUSINESS_RULE ),
148- () -> assertEquals (HttpStatus .FORBIDDEN , response .getStatusCode ())
147+ () -> assertResponseHasExpectedOperationOutcome (rootNode , CONFLICT , DIAGNOSTICS_MSG , ISSUE_CODE_BUSINESS_RULE ),
148+ () -> assertEquals (HttpStatus .CONFLICT , response .getStatusCode ())
149149 );
150150 }
151151
@@ -199,8 +199,8 @@ void When_AnEhrExtractHasNotFailed_Expect_RespondsWith403() throws JsonProcessin
199199 JsonNode rootNode = objectMapper .readTree (response .getBody ());
200200
201201 assertAll (
202- () -> assertResponseHasExpectedOperationOutcome (rootNode , FORBIDDEN , DIAGNOSTICS_MSG , ISSUE_CODE_BUSINESS_RULE ),
203- () -> assertEquals (HttpStatus .FORBIDDEN , response .getStatusCode ())
202+ () -> assertResponseHasExpectedOperationOutcome (rootNode , CONFLICT , DIAGNOSTICS_MSG , ISSUE_CODE_BUSINESS_RULE ),
203+ () -> assertEquals (HttpStatus .CONFLICT , response .getStatusCode ())
204204 );
205205 }
206206
0 commit comments