Skip to content
Snippets Groups Projects
Commit 0c141d47 authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-7608 OZG-7736 Cleanup tests

parent 8cd27ea8
No related branches found
No related tags found
1 merge request!2Ozg 7608 vorgangshoellen for statistik
...@@ -290,12 +290,12 @@ class GrpcOzgCloudVorgangServiceTest { ...@@ -290,12 +290,12 @@ class GrpcOzgCloudVorgangServiceTest {
@BeforeEach @BeforeEach
void mock() { void mock() {
doReturn(stub).when(service).getVorgangServiceStub(); doReturn(stub).when(service).getVorgangServiceStub();
when(stub.findDeletedVorgang(request)).thenReturn(List.of(response).iterator()); when(stub.findDeletedVorgang(any())).thenReturn(List.of(response).iterator());
when(stubMapper.fromGrpc(response.getVorgangList().getFirst())).thenReturn(vorgangStub); when(stubMapper.fromGrpc(any())).thenReturn(vorgangStub);
} }
@Test @Test
void shouldCallGetVorgangServiceStub() { void shouldCallVorgangServiceStub() {
service.findDeleted().toList(); service.findDeleted().toList();
verify(stub).findDeletedVorgang(request); verify(stub).findDeletedVorgang(request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment