Skip to content

Commit

Permalink
Fikset tester
Browse files Browse the repository at this point in the history
  • Loading branch information
stigus committed Oct 24, 2023
1 parent 29ea95b commit fe36b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Service
public class TelefonnummerService extends PdlArtifactService<TelefonnummerDTO> {

private static final String VALIDATION_PRIORITET_REQUIRED = "Telefonnummer: prioritet er påkrevd";
private static final String VALIDATION_PRIORITET_REQUIRED = "Telefonnummer: prioritet er påkrevet";
private static final String VALIDATION_PRIORITET_ERROR = "Telefonnummerets prioritet må være 1 eller 2";
private static final String VALIDATION_PRIORITET_INVALID = "Telefonnummer: prioritet 1 må angis før 2 kan benyttes";
private static final String VALIDATION_PRIORITET_AMBIGUOUS = "Telefonnummer: prioritet 1 og prioritet 2 kan kun benyttes én gang hver";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void whenTelefonnummerIsAbsent_thenThrowException() {
var exception = assertThrows(HttpClientErrorException.class, () ->
telefonnummerService.validate(request));

assertThat(exception.getMessage(), containsString("Telefonnummer: nummer er påkrevd felt"));
assertThat(exception.getMessage(), containsString("Telefonnummer: nummer er påkrevet felt"));
}

@Test
Expand Down Expand Up @@ -74,7 +74,7 @@ void whenLandskodeIsAbsent_thenThrowException() {
var exception = assertThrows(HttpClientErrorException.class, () ->
telefonnummerService.validate(request));

assertThat(exception.getMessage(), containsString("Telefonnummer: landskode er påkrevd felt"));
assertThat(exception.getMessage(), containsString("Telefonnummer: landskode er påkrevet felt"));
}

@Test
Expand Down Expand Up @@ -105,7 +105,7 @@ void whenPriorityIsMissing_thenThrowException() {
var exception = assertThrows(HttpClientErrorException.class, () ->
telefonnummerService.validate(request));

assertThat(exception.getMessage(), containsString("Telefonnummer: prioritet er påkrevd"));
assertThat(exception.getMessage(), containsString("Telefonnummer: prioritet er påkrevet"));
}

@Test
Expand Down

0 comments on commit fe36b4a

Please sign in to comment.