File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
main/java/uk/gov/companieshouse/orders/api/validator
test/java/uk/gov/companieshouse/orders/api/controller Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1111@ Component
1212public class DeliveryDetailsValidator {
1313
14- private static final String ADDRESS_LINE_1_VALIDATION = "delivery_details.address_line_1 may not be blank" ;
15- private static final String COUNTRY_VALIDATION = "delivery_details.country may not be blank" ;
16- private static final String FORENAME_VALIDATION = "delivery_details.forename may not be blank" ;
17- private static final String SURNAME_VALIDATION = "delivery_details.surname may not be blank" ;
18- private static final String LOCALITY_VALIDATION = "delivery_details.locality may not be blank" ;
14+ private static final String ADDRESS_LINE_1_VALIDATION = "delivery_details.address_line_1: must not be blank" ;
15+ private static final String COUNTRY_VALIDATION = "delivery_details.country: must not be blank" ;
16+ private static final String FORENAME_VALIDATION = "delivery_details.forename: must not be blank" ;
17+ private static final String SURNAME_VALIDATION = "delivery_details.surname: must not be blank" ;
18+ private static final String LOCALITY_VALIDATION = "delivery_details.locality: must not be blank" ;
1919 private static final String POSTAL_CODE_VALIDATION = "Postcode or Region is required" ;
2020
2121 public DeliveryDetailsValidator () { }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments