Skip to content

Commit

Permalink
K1J-451: Fix test method length.
Browse files Browse the repository at this point in the history
  • Loading branch information
mww-sopra-steria committed Oct 29, 2024
1 parent af3223b commit 21886d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void shallAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientOlderT
}

@Test
void shallAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientOlderThanThirtyYearsAndTwoMonthsWithCoordinationNumber() {
void shallAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientOlderThanThirtyYearsAndTwoMonthsWithCoordinationNo() {
final var module = createIntygModule("luae_na");
doReturn(List.of(module)).when(intygModuleRegistry).listAllModules();
when(authoritiesHelper.getIntygstyperForPrivilege(any(), any())).thenReturn(Set.of(module.getId()));
Expand All @@ -255,7 +255,7 @@ void shallAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientOlderT
}

@Test
void shallNotAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatienYoungerThanThirtyYearsAndTwoMonths() {
void shallNotAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientYoungerThanThirtyYearsAndTwoMonths() {
final var module = createIntygModule("luae_na");
doReturn(List.of(module)).when(intygModuleRegistry).listAllModules();
when(authoritiesHelper.getIntygstyperForPrivilege(any(), any())).thenReturn(Set.of(module.getId()));
Expand All @@ -266,7 +266,7 @@ void shallNotAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatienYoun
}

@Test
void shallNotAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatienYoungerThanThirtyYearsAndTwoMonthsWithCoordinationNumber() {
void shallNotAddCreateConfirmationResourceLinkIfCertificateIsLuaenaAndPatientYoungerThanThirtyYearsAndTwoMonthsCoordinationNo() {

Check warning on line 269 in web/src/test/java/se/inera/intyg/webcert/web/service/facade/impl/GetCertificateTypesFacadeServiceImplTest.java

View workflow job for this annotation

GitHub Actions / reviewdog

[reviewdog] web/src/test/java/se/inera/intyg/webcert/web/service/facade/impl/GetCertificateTypesFacadeServiceImplTest.java#L269 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 140 characters (found 141).
Raw output
/github/workspace/./web/src/test/java/se/inera/intyg/webcert/web/service/facade/impl/GetCertificateTypesFacadeServiceImplTest.java:269:0: warning: Line is longer than 140 characters (found 141). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
final var module = createIntygModule("luae_na");
doReturn(List.of(module)).when(intygModuleRegistry).listAllModules();
when(authoritiesHelper.getIntygstyperForPrivilege(any(), any())).thenReturn(Set.of(module.getId()));
Expand Down

0 comments on commit 21886d4

Please sign in to comment.