RED-6310: Removed not needed code from test

This commit is contained in:
Viktor Seifert 2023-03-07 10:57:33 +01:00
parent b1d79970c0
commit fd7f39bc7e

View File

@ -9,7 +9,6 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.iqser.red.service.peristence.v1.server.controller.NotificationController;
import com.iqser.red.service.peristence.v1.server.integration.utils.AbstractPersistenceServerServiceTest;
import com.iqser.red.service.persistence.management.v1.processor.service.persistence.NotificationPreferencesPersistenceService;
import com.iqser.red.service.persistence.management.v1.processor.utils.multitenancy.TenantContext;
@ -26,9 +25,6 @@ public class NotificationPreferencesServiceTest extends AbstractPersistenceServe
@Autowired
NotificationPreferencesPersistenceService notificationPreferencesPersistenceService;
@Autowired
NotificationController notificationController;
@BeforeEach
public void setup() {
@ -47,7 +43,6 @@ public class NotificationPreferencesServiceTest extends AbstractPersistenceServe
Thread t1 = new Thread(() -> {
try {
notificationController.getNotifications(userId, true);
notificationPreferencesPersistenceService.getOrCreateNotificationPreferences(userId);
} catch (Exception e) {
exceptions.add(e);
@ -55,7 +50,6 @@ public class NotificationPreferencesServiceTest extends AbstractPersistenceServe
});
Thread t2 = new Thread(() -> {
try {
notificationController.getNotifications(userId, true);
notificationPreferencesPersistenceService.getOrCreateNotificationPreferences(userId);
} catch (Exception e) {
exceptions.add(e);