Skip to content
Snippets Groups Projects
Commit d9dd0a8b authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-6354 adjust test

parent 1ecfb5b6
Branches
Tags
No related merge requests found
......@@ -175,7 +175,6 @@ class VorgangManagerServerResolverTest {
private ManagableStub<?> stub;
private final Optional<String> organisationsEinheitenId = Optional.of(ZustaendigeStelleTestFactory.ORGANISATIONSEINHEIT_ID);
private final Class<? extends AbstractStub<?>> stubClass = VorgangServiceBlockingStub.class;
@DisplayName("on zufi strategy")
@Nested
......@@ -191,7 +190,7 @@ class VorgangManagerServerResolverTest {
void shouldCallCreateStub() {
createStub();
verify(resolver).createStub(organisationsEinheitenId, stubFactory, stubClass);
verify(resolver).createStub(organisationsEinheitenId, stubFactory, VorgangServiceBlockingStub.class);
}
@Test
......@@ -216,7 +215,7 @@ class VorgangManagerServerResolverTest {
void shouldCallCreateStub() {
createStub();
verify(resolver).createStubByConfiguredChannels(organisationsEinheitenId, stubFactory, stubClass);
verify(resolver).createStubByConfiguredChannels(organisationsEinheitenId, stubFactory, VorgangServiceBlockingStub.class);
}
@Test
......@@ -227,8 +226,8 @@ class VorgangManagerServerResolverTest {
}
}
private <T extends AbstractStub<T>> ManagableStub<T> createStub() {
return resolver.createStub(organisationsEinheitenId, stubFactory, stubClass);
private ManagableStub<VorgangServiceBlockingStub> createStub() {
return resolver.createStub(organisationsEinheitenId, stubFactory, VorgangServiceBlockingStub.class);
}
}
......@@ -244,7 +243,6 @@ class VorgangManagerServerResolverTest {
private ManagedChannel managedChannel;
private Optional<String> organisationsEinheitenId = Optional.of(VorgangManagerListPropertiesTestFactory.ORGANISATIONSEINHEIT_ID);
private Class<? extends AbstractStub<?>> stubClass = VorgangServiceBlockingStub.class;
private final String vorgangManagerAddress = "dummyVorgangManagerAddress";
@BeforeEach
......@@ -272,7 +270,7 @@ class VorgangManagerServerResolverTest {
void shouldCreateStub() {
createCloseableStub();
verify(stubFactory).createStub(stubClass, managedChannel);
verify(stubFactory).createStub(VorgangServiceBlockingStub.class, managedChannel);
}
@Test
......@@ -290,8 +288,8 @@ class VorgangManagerServerResolverTest {
assertThat(createdStub.get()).isEqualTo(stub);
}
private <T extends AbstractStub<T>> ManagableStub<T> createCloseableStub() {
return resolver.createCloseableStub(organisationsEinheitenId, stubFactory, stubClass);
private ManagableStub<VorgangServiceBlockingStub> createCloseableStub() {
return resolver.createCloseableStub(organisationsEinheitenId, stubFactory, VorgangServiceBlockingStub.class);
}
}
......@@ -384,7 +382,7 @@ class VorgangManagerServerResolverTest {
private ManagableStub<?> createStubByConfiguredChannels() {
return resolver.createStubByConfiguredChannels(Optional.of(VorgangManagerListPropertiesTestFactory.ORGANISATIONSEINHEIT_ID), stubFactory,
stubClass);
VorgangServiceBlockingStub.class);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment