Skip to content
Snippets Groups Projects
Commit c478795f authored by kbeyro's avatar kbeyro
Browse files

fix test

parent dab3a879
Branches
Tags
1 merge request!24Resolve "Reduce the amount of data to make the list of applications load faster"
Pipeline #88840 passed
......@@ -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")
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment