diff --git a/notification-manager/src/test/java/de/itvsh/kop/notification/user/UserNotificationServiceTest.java b/notification-manager/src/test/java/de/itvsh/kop/notification/user/UserNotificationServiceTest.java index 14baeb2d9e86957be837cdefe9e1c72a1a36f87e..d3af3bd5b085c8910d4630b8a033d92451db2ef0 100644 --- a/notification-manager/src/test/java/de/itvsh/kop/notification/user/UserNotificationServiceTest.java +++ b/notification-manager/src/test/java/de/itvsh/kop/notification/user/UserNotificationServiceTest.java @@ -57,12 +57,12 @@ class UserNotificationServiceTest { } } - @DisplayName("with valid orgaId") + @DisplayName("with null as orgaId") @Nested - class TestWithInValidOrgaId { + class TestWithInvalidOrgaId { @Test - void shouldSendEmail() { + void shouldThrowIllegalArgumentException() { assertThatThrownBy(() -> service.sendNotification(null)) .isInstanceOf(IllegalArgumentException.class) .withFailMessage("organisationsEinheitId cannot be null.");