Skip to content
Snippets Groups Projects
Commit aeba07a6 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2626 OZG-3065 fix naming

parent d1130f3e
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ class UserNotificationEventListenerTest {
void shouldNotifyWithOrganisationeinheitIds() {
userNotificationEventListener.onVorgangCreated(EVENT);
verify(userNotificationService).sendNotification(VorgangTestFactory.ORGANISATIONEINCHEIT_ID);
verify(userNotificationService).sendNotification(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID);
}
}
}
\ No newline at end of file
......@@ -38,20 +38,20 @@ class UserNotificationServiceTest {
@BeforeEach
void init() {
when(userRemoteService.getRecipients(VorgangTestFactory.ORGANISATIONEINCHEIT_ID)).thenReturn(List.of(RecipientTestFactory.create()));
when(userRemoteService.getRecipients(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID)).thenReturn(List.of(RecipientTestFactory.create()));
doNothing().when(emailRemoteService).sendEmail(any(UserEmail.class));
}
@Test
void shouldGetRecipients() {
service.sendNotification(VorgangTestFactory.ORGANISATIONEINCHEIT_ID);
service.sendNotification(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID);
verify(userRemoteService).getRecipients(VorgangTestFactory.ORGANISATIONEINCHEIT_ID);
verify(userRemoteService).getRecipients(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID);
}
@Test
void shouldSendEmail() {
service.sendNotification(VorgangTestFactory.ORGANISATIONEINCHEIT_ID);
service.sendNotification(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID);
verify(emailRemoteService).sendEmail(UserEmailTestFactory.create());
}
......
......@@ -23,7 +23,7 @@ public class GrpcVorgangTestFactory {
.setPostfachId(VorgangTestFactory.POSTFACH_ID)
.build())
.setZustaendigeStelle(
GrpcZustaendigeStelle.newBuilder().setOrganisationseinheitenId(VorgangTestFactory.ORGANISATIONEINCHEIT_ID).build())
GrpcZustaendigeStelle.newBuilder().setOrganisationseinheitenId(VorgangTestFactory.ORGANISATIONS_EINHEIT_ID).build())
.build());
}
......
......@@ -14,7 +14,7 @@ public class VorgangTestFactory {
public static final String POSTFACH_ID = UUID.randomUUID().toString();
public static final String FORM_ENGINE_NAME = "deluxeEngine";
public static final String ORGANISATIONEINCHEIT_ID = "1234567889";
public static final String ORGANISATIONS_EINHEIT_ID = "1234567889";
public static Vorgang create() {
return createBuilder().build();
......@@ -28,7 +28,7 @@ public class VorgangTestFactory {
.createdAt(CREATED_AT)
.postfachId(POSTFACH_ID)
.formEngineName(FORM_ENGINE_NAME)
.organisationseinheitenId(ORGANISATIONEINCHEIT_ID);
.organisationseinheitenId(ORGANISATIONS_EINHEIT_ID);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment