add UserMaximum function
This commit is contained in:
@ -56,7 +56,8 @@ public class EventBuilder {
|
||||
faker.random().hex(),
|
||||
null,
|
||||
GroupType.SIMPLE,
|
||||
Visibility.PRIVATE
|
||||
Visibility.PRIVATE,
|
||||
null
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ class EventServiceTest {
|
||||
|
||||
@Test
|
||||
void getDTOOffentlichTest() {
|
||||
CreateGroupEvent createGroupEvent = new CreateGroupEvent(eventService.checkGroup(), "test", null, GroupType.LECTURE, Visibility.PUBLIC);
|
||||
CreateGroupEvent createGroupEvent = new CreateGroupEvent(eventService.checkGroup(), "test", null, GroupType.LECTURE, Visibility.PUBLIC, null);
|
||||
EventDTO eventDTO = eventService.getDTO(createGroupEvent);
|
||||
assertTrue(eventDTO.isVisibility());
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ class GroupServiceTest {
|
||||
@Test
|
||||
void rightClassForSuccessfulGroup() throws Exception {
|
||||
List<Event> eventList = new ArrayList<>();
|
||||
eventList.add(new CreateGroupEvent(1L, "Prof", null, GroupType.LECTURE, Visibility.PRIVATE));
|
||||
eventList.add(new CreateGroupEvent(1L, "Prof", null, GroupType.LECTURE, Visibility.PRIVATE,null));
|
||||
eventList.add(new AddUserEvent(1L, "Ulli", "Ulli", "Honnis", "FC@B.de"));
|
||||
|
||||
List<Group> groups = groupService.projectEventList(eventList);
|
||||
|
||||
Reference in New Issue
Block a user