Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFHS-2008 - made nino as optional field in PersonDTO #84

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

AmarkumarJagtap
Copy link
Contributor

No description provided.

@Test
void shouldFailValidationWithMissingNino() {
PersonDTO personDTO = aPersonDTOWithNino(null);
Set<ConstraintViolation<PersonDTO>> violations = validator.validate(personDTO);
assertThat(violations).hasSingleConstraintViolation("must not be null", "nino");
}

@Test
void shouldValidationWithMissingNino() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to 'shouldValidateWithMissingNino'

@AmarkumarJagtap AmarkumarJagtap merged commit 3350529 into master Feb 12, 2020
@AmarkumarJagtap AmarkumarJagtap deleted the feature/AFHS_2008_Nino_optional branch February 12, 2020 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants