From c478795faccb2a89f84c42b1b687c99e6b60a2e5 Mon Sep 17 00:00:00 2001
From: kbeyro <121854496+kbeyro@users.noreply.github.com>
Date: Thu, 29 Aug 2024 15:49:34 +0200
Subject: [PATCH] fix test
---
.../portal/service/impl/ApplicationBaseServiceTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java b/src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java
index abaf4c3f2..30f8865e9 100644
--- a/src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java
+++ b/src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java
@@ -14,6 +14,7 @@ import net.geant.nmaas.portal.service.ApplicationStatePerDomainService;
import net.geant.nmaas.portal.service.DomainService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import org.modelmapper.ModelMapper;
import org.springframework.context.ApplicationEventPublisher;
import java.util.Collections;
@@ -43,11 +44,13 @@ public class ApplicationBaseServiceTest {
private final ApplicationEventPublisher eventPublisher= mock(ApplicationEventPublisher.class);
private final DomainService domainService = mock(DomainService.class);
+ private final ModelMapper modelMapper = new ModelMapper();
+
private ApplicationBaseService appBaseService;
@BeforeEach
void setup() {
- this.appBaseService = new ApplicationBaseServiceImpl(appBaseRepo, tagRepo, applicationStatePerDomainService,eventPublisher, domainService);
+ this.appBaseService = new ApplicationBaseServiceImpl(appBaseRepo, tagRepo, applicationStatePerDomainService,eventPublisher, domainService, modelMapper);
applicationBase1.setDescriptions(Collections.singletonList(
new AppDescription(11L, "en", "description", "full description")
));
--
GitLab