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

OZG-5321 [test] add missing tests

parent ffc3aa07
Branches
Tags
No related merge requests found
...@@ -88,6 +88,27 @@ class AttachedItemServiceTest { ...@@ -88,6 +88,27 @@ class AttachedItemServiceTest {
} }
} }
@Nested
class TestGetBescheidItem {
@Test
void shouldCallGetBescheid() {
service.getBescheidItem(BescheidItemTestFactory.ID);
verify(remoteService).getBescheid(BescheidItemTestFactory.ID);
}
@Test
void shouldReturnBescheidItem() {
var expected = BescheidItemTestFactory.create();
when(remoteService.getBescheid(anyString())).thenReturn(expected);
var actual = service.getBescheidItem(BescheidItemTestFactory.ID);
assertThat(actual).isEqualTo(expected);
}
}
@Nested @Nested
class TestCreateBescheidDraft { class TestCreateBescheidDraft {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment