1
Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-27 14:33:01 +01:00
parent 9ccb7c77a2
commit 63d9b76d40
8 changed files with 14 additions and 11 deletions

View File

@ -40,6 +40,7 @@ class EventServiceTest {
@BeforeEach
void setUp() {
eventService = new EventService(jsonService, eventRepository);
eventRepository.deleteAll();
}
@Test

View File

@ -48,6 +48,7 @@ class GroupServiceTest {
@BeforeEach
void setUp() {
groupService = new GroupService(eventService, eventRepository);
eventRepository.deleteAll();
}
//TODO: Wofür ist dieser Test?
@ -116,7 +117,7 @@ class GroupServiceTest {
Group group = TestBuilder.apply(test1, test2);
assertThat(group.getType()).isEqualTo(null);
assertThat(groupService.getAllGroupWithVisibilityPublic("test1")).isEmpty();
assertThat(groupService.getAllGroupWithVisibilityPublic("errer")).isEmpty();
}
@Test