Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nmaas Platform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
nmaas Platform
Commits
c478795f
Commit
c478795f
authored
10 months ago
by
kbeyro
Browse files
Options
Downloads
Patches
Plain Diff
fix test
parent
dab3a879
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!24
Resolve "Reduce the amount of data to make the list of applications load faster"
Pipeline
#88840
passed
10 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java
+4
-1
4 additions, 1 deletion
...nmaas/portal/service/impl/ApplicationBaseServiceTest.java
with
4 additions
and
1 deletion
src/test/java/net/geant/nmaas/portal/service/impl/ApplicationBaseServiceTest.java
+
4
−
1
View file @
c478795f
...
...
@@ -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"
)
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment