Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xta-adapter
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
eingang
xta-adapter
Commits
d9dd0a8b
Commit
d9dd0a8b
authored
8 months ago
by
OZG-Cloud Team
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6354 adjust test
parent
1ecfb5b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerServerResolverTest.java
+8
-10
8 additions, 10 deletions
...loud/eingang/router/VorgangManagerServerResolverTest.java
with
8 additions
and
10 deletions
router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerServerResolverTest.java
+
8
−
10
View file @
d9dd0a8b
...
@@ -175,7 +175,6 @@ class VorgangManagerServerResolverTest {
...
@@ -175,7 +175,6 @@ class VorgangManagerServerResolverTest {
private
ManagableStub
<?>
stub
;
private
ManagableStub
<?>
stub
;
private
final
Optional
<
String
>
organisationsEinheitenId
=
Optional
.
of
(
ZustaendigeStelleTestFactory
.
ORGANISATIONSEINHEIT_ID
);
private
final
Optional
<
String
>
organisationsEinheitenId
=
Optional
.
of
(
ZustaendigeStelleTestFactory
.
ORGANISATIONSEINHEIT_ID
);
private
final
Class
<?
extends
AbstractStub
<?>>
stubClass
=
VorgangServiceBlockingStub
.
class
;
@DisplayName
(
"on zufi strategy"
)
@DisplayName
(
"on zufi strategy"
)
@Nested
@Nested
...
@@ -191,7 +190,7 @@ class VorgangManagerServerResolverTest {
...
@@ -191,7 +190,7 @@ class VorgangManagerServerResolverTest {
void
shouldCallCreateStub
()
{
void
shouldCallCreateStub
()
{
createStub
();
createStub
();
verify
(
resolver
).
createStub
(
organisationsEinheitenId
,
stubFactory
,
s
tub
C
lass
);
verify
(
resolver
).
createStub
(
organisationsEinheitenId
,
stubFactory
,
VorgangServiceBlockingS
tub
.
c
lass
);
}
}
@Test
@Test
...
@@ -216,7 +215,7 @@ class VorgangManagerServerResolverTest {
...
@@ -216,7 +215,7 @@ class VorgangManagerServerResolverTest {
void
shouldCallCreateStub
()
{
void
shouldCallCreateStub
()
{
createStub
();
createStub
();
verify
(
resolver
).
createStubByConfiguredChannels
(
organisationsEinheitenId
,
stubFactory
,
s
tub
C
lass
);
verify
(
resolver
).
createStubByConfiguredChannels
(
organisationsEinheitenId
,
stubFactory
,
VorgangServiceBlockingS
tub
.
c
lass
);
}
}
@Test
@Test
...
@@ -227,8 +226,8 @@ class VorgangManagerServerResolverTest {
...
@@ -227,8 +226,8 @@ class VorgangManagerServerResolverTest {
}
}
}
}
private
<
T
extends
AbstractStub
<
T
>>
Managable
Stub
<
T
>
createStub
()
{
private
ManagableStub
<
VorgangServiceBlocking
Stub
>
createStub
()
{
return
resolver
.
createStub
(
organisationsEinheitenId
,
stubFactory
,
s
tub
C
lass
);
return
resolver
.
createStub
(
organisationsEinheitenId
,
stubFactory
,
VorgangServiceBlockingS
tub
.
c
lass
);
}
}
}
}
...
@@ -244,7 +243,6 @@ class VorgangManagerServerResolverTest {
...
@@ -244,7 +243,6 @@ class VorgangManagerServerResolverTest {
private
ManagedChannel
managedChannel
;
private
ManagedChannel
managedChannel
;
private
Optional
<
String
>
organisationsEinheitenId
=
Optional
.
of
(
VorgangManagerListPropertiesTestFactory
.
ORGANISATIONSEINHEIT_ID
);
private
Optional
<
String
>
organisationsEinheitenId
=
Optional
.
of
(
VorgangManagerListPropertiesTestFactory
.
ORGANISATIONSEINHEIT_ID
);
private
Class
<?
extends
AbstractStub
<?>>
stubClass
=
VorgangServiceBlockingStub
.
class
;
private
final
String
vorgangManagerAddress
=
"dummyVorgangManagerAddress"
;
private
final
String
vorgangManagerAddress
=
"dummyVorgangManagerAddress"
;
@BeforeEach
@BeforeEach
...
@@ -272,7 +270,7 @@ class VorgangManagerServerResolverTest {
...
@@ -272,7 +270,7 @@ class VorgangManagerServerResolverTest {
void
shouldCreateStub
()
{
void
shouldCreateStub
()
{
createCloseableStub
();
createCloseableStub
();
verify
(
stubFactory
).
createStub
(
s
tub
C
lass
,
managedChannel
);
verify
(
stubFactory
).
createStub
(
VorgangServiceBlockingS
tub
.
c
lass
,
managedChannel
);
}
}
@Test
@Test
...
@@ -290,8 +288,8 @@ class VorgangManagerServerResolverTest {
...
@@ -290,8 +288,8 @@ class VorgangManagerServerResolverTest {
assertThat
(
createdStub
.
get
()).
isEqualTo
(
stub
);
assertThat
(
createdStub
.
get
()).
isEqualTo
(
stub
);
}
}
private
<
T
extends
AbstractStub
<
T
>>
Managable
Stub
<
T
>
createCloseableStub
()
{
private
ManagableStub
<
VorgangServiceBlocking
Stub
>
createCloseableStub
()
{
return
resolver
.
createCloseableStub
(
organisationsEinheitenId
,
stubFactory
,
s
tub
C
lass
);
return
resolver
.
createCloseableStub
(
organisationsEinheitenId
,
stubFactory
,
VorgangServiceBlockingS
tub
.
c
lass
);
}
}
}
}
...
@@ -384,7 +382,7 @@ class VorgangManagerServerResolverTest {
...
@@ -384,7 +382,7 @@ class VorgangManagerServerResolverTest {
private
ManagableStub
<?>
createStubByConfiguredChannels
()
{
private
ManagableStub
<?>
createStubByConfiguredChannels
()
{
return
resolver
.
createStubByConfiguredChannels
(
Optional
.
of
(
VorgangManagerListPropertiesTestFactory
.
ORGANISATIONSEINHEIT_ID
),
stubFactory
,
return
resolver
.
createStubByConfiguredChannels
(
Optional
.
of
(
VorgangManagerListPropertiesTestFactory
.
ORGANISATIONSEINHEIT_ID
),
stubFactory
,
s
tub
C
lass
);
VorgangServiceBlockingS
tub
.
c
lass
);
}
}
}
}
...
...
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