|
|
@ -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);
|
|
|
|