Skip to content
Snippets Groups Projects
Commit 9ba36e82 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5323 delete unnecessary tests

parent ddac89d8
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@
package de.ozgcloud.bescheid.attacheditem;
import static org.assertj.core.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
import java.util.Map;
......@@ -51,7 +50,6 @@ import de.ozgcloud.vorgang.vorgangAttachedItem.GrpcVorgangAttachedItemRequest;
import de.ozgcloud.vorgang.vorgangAttachedItem.GrpcVorgangAttachedItemResponse;
import de.ozgcloud.vorgang.vorgangAttachedItem.VorgangAttachedItemServiceGrpc.VorgangAttachedItemServiceBlockingStub;
import io.grpc.ClientInterceptor;
import io.grpc.StatusRuntimeException;
class VorgangAttachedItemRemoteServiceTest {
......@@ -310,13 +308,6 @@ class VorgangAttachedItemRemoteServiceTest {
assertThat(result).isEqualTo(expectedBescheid);
}
@Test
void shouldThrowExceptionIfNotFound() {
when(serviceStub.getById(any())).thenThrow(StatusRuntimeException.class);
assertThrows(StatusRuntimeException.class, this::getBescheid);
}
private BescheidItem getBescheid() {
return service.getBescheid(BescheidItemTestFactory.ID);
}
......@@ -386,13 +377,6 @@ class VorgangAttachedItemRemoteServiceTest {
assertThat(result).isEqualTo(expectedItem);
}
@Test
void shouldThrowExceptionIfNotFound() {
when(serviceStub.getById(any())).thenThrow(StatusRuntimeException.class);
assertThrows(StatusRuntimeException.class, this::getItem);
}
private AttachedItem getItem() {
return service.getItem(BescheidItemTestFactory.ID);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment