#101 event service edited

This commit is contained in:
a.vasin 2019-06-01 12:03:42 +04:00
parent 7edb9d2aa3
commit 38478835fb
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ public class ProjectServiceTest {
public void create() throws IOException { public void create() throws IOException {
when(deadlineService.saveOrCreate(new ArrayList<>())).thenReturn(deadlines); when(deadlineService.saveOrCreate(new ArrayList<>())).thenReturn(deadlines);
when(projectRepository.save(new Project())).thenReturn(project); when(projectRepository.save(new Project())).thenReturn(project);
eventService.createFromProject(new Project()); eventService.createFromObject(new Project(), Collections.emptyList());
projectDto.setTitle(TITLE); projectDto.setTitle(TITLE);
projectDto.setDeadlines(deadlines); projectDto.setDeadlines(deadlines);

View File

@ -136,7 +136,7 @@ public class TaskServiceTest {
when(tagService.saveOrCreate(new ArrayList<>())).thenReturn(tags); when(tagService.saveOrCreate(new ArrayList<>())).thenReturn(tags);
when(deadlineService.saveOrCreate(new ArrayList<>())).thenReturn(deadlines); when(deadlineService.saveOrCreate(new ArrayList<>())).thenReturn(deadlines);
when(taskRepository.save(new Task())).thenReturn(task); when(taskRepository.save(new Task())).thenReturn(task);
eventService.createFromTask(new Task()); eventService.createFromObject(new Task(), Collections.emptyList());
taskDto.setTags(tags); taskDto.setTags(tags);
taskDto.setDeadlines(deadlines); taskDto.setDeadlines(deadlines);