Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alfa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
alfa
Commits
28a05fb3
Commit
28a05fb3
authored
2 weeks ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
OZG-7872 add safety tests
parent
b84b32e0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!26
OZG-7872 OZG-8039 add related resource link on postfach
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandProcessorTest.java
+20
-0
20 additions, 0 deletions
...de/ozgcloud/alfa/common/command/CommandProcessorTest.java
with
20 additions
and
0 deletions
alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandProcessorTest.java
+
20
−
0
View file @
28a05fb3
...
...
@@ -45,6 +45,16 @@ class CommandProcessorTest {
verify
(
processor
).
isResponsibleForEffectedResource
(
CommandOrder
.
fromOrder
(
CommandTestFactory
.
ORDER
));
}
@DisplayName
(
"should NOT create link builder for related resource if the responsibility matches"
)
@Test
void
shouldNOTCallCreateEffectedResourceLinkBuilder
()
{
when
(
processor
.
isResponsibleForEffectedResource
(
any
())).
thenReturn
(
false
);
processor
.
process
(
model
);
verify
(
processor
,
never
()).
createEffectedResourceLinkBuilder
(
command
);
}
@DisplayName
(
"should create link builder for effected resource if the responsibility matches"
)
@Test
void
shouldCallCreateEffectedResourceLinkBuilder
()
{
...
...
@@ -107,6 +117,16 @@ class CommandProcessorTest {
verify
(
processor
).
createRelatedResourceLinkBuilder
(
command
);
}
@DisplayName
(
"should NOT create link builder for related resource if the responsibility matches"
)
@Test
void
shouldNOTCallCreateRelatedResourceLinkBuilder
()
{
when
(
processor
.
isResponsibleForRelatedResource
(
any
())).
thenReturn
(
false
);
processor
.
process
(
model
);
verify
(
processor
,
never
()).
createRelatedResourceLinkBuilder
(
command
);
}
@DisplayName
(
"link"
)
@Nested
class
TestRelatedResourceLink
{
...
...
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