1

fix tests after refactor

This commit is contained in:
Christoph
2020-03-09 12:46:29 +01:00
parent c7f9c0b985
commit 86a4975c00
4 changed files with 14 additions and 10 deletions

View File

@ -1,9 +1,9 @@
package mops.gruppen2.service;
import mops.gruppen2.domain.Group;
import mops.gruppen2.domain.event.CreateGroupEvent;
import mops.gruppen2.domain.event.Event;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
@ -16,8 +16,8 @@ public class GroupService {
* @param eventList Die restlichen Events für diese Gruppe
* @return Gruppe auf aktuellem Stand
*/
Group buildGroupFromEvents(CreateGroupEvent event, List<Event> eventList) {
Group newGroup = new Group(event);
Group buildGroupFromEvents(List<Event> eventList) {
Group newGroup = new Group();
eventList.forEach(newGroup::applyEvent);