Skip to content

Commit ffe696a

Browse files
committed
correcting custom validation errors to match pre-java-upgrade errors
1 parent bcca6ab commit ffe696a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/uk/gov/companieshouse/orders/api/controller/BasketControllerIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ void addDeliveryDetailsFailsDueToFailedValidation() throws Exception {
15361536
.andExpect(status().isBadRequest())
15371537
.andDo(MockMvcResultHandlers.print())
15381538
.andReturn();
1539-
Assertions.assertTrue(result.getResponse().getContentAsString().contains("address_line_1 may not be blank"));
1539+
Assertions.assertTrue(result.getResponse().getContentAsString().contains("delivery_details.address_line_1: must not be blank"));
15401540
}
15411541

15421542
@Test

0 commit comments

Comments
 (0)