#101 tests edited
This commit is contained in:
parent
482964fe53
commit
bdff81d25e
@ -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.createFromObject(new Project(), Collections.emptyList());
|
eventService.createFromObject(new Project(), Collections.emptyList(), false, "проекта");
|
||||||
|
|
||||||
projectDto.setTitle(TITLE);
|
projectDto.setTitle(TITLE);
|
||||||
projectDto.setDeadlines(deadlines);
|
projectDto.setDeadlines(deadlines);
|
||||||
|
@ -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.createFromObject(new Task(), Collections.emptyList());
|
eventService.createFromObject(new Task(), Collections.emptyList(), true, "задачи");
|
||||||
|
|
||||||
taskDto.setTags(tags);
|
taskDto.setTags(tags);
|
||||||
taskDto.setDeadlines(deadlines);
|
taskDto.setDeadlines(deadlines);
|
||||||
|
Loading…
Reference in New Issue
Block a user