When inserting a new user into the User's table, the username is allowed to be blank - despite the @NotBlank annotation on the username field in the User class.
Added @Valid notation to RegistrationController.registerUser to enforce @NotBlank constraint. Test present in RegistrationControllerTest.whenBlankValueRegister_thenReturns400
When inserting a new user into the User's table, the username is allowed to be blank - despite the
@NotBlank
annotation on the username field in the User class.