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