|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
package ru.ulstu.activity.conference.service;
|
|
|
|
|
package conference;
|
|
|
|
|
|
|
|
|
|
import org.junit.Before;
|
|
|
|
|
import org.junit.Test;
|
|
|
|
@ -12,6 +12,9 @@ import ru.ulstu.activity.conference.model.ConferenceDto;
|
|
|
|
|
import ru.ulstu.activity.conference.model.ConferenceFilterDto;
|
|
|
|
|
import ru.ulstu.activity.conference.model.ConferenceUser;
|
|
|
|
|
import ru.ulstu.activity.conference.repository.ConferenceRepository;
|
|
|
|
|
import ru.ulstu.activity.conference.service.ConferenceNotificationService;
|
|
|
|
|
import ru.ulstu.activity.conference.service.ConferenceService;
|
|
|
|
|
import ru.ulstu.activity.conference.service.ConferenceUserService;
|
|
|
|
|
import ru.ulstu.activity.deadline.model.Deadline;
|
|
|
|
|
import ru.ulstu.activity.deadline.service.DeadlineService;
|
|
|
|
|
import ru.ulstu.activity.paper.model.Paper;
|
|
|
|
@ -160,7 +163,7 @@ public class ConferenceServiceTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void create() throws IOException {
|
|
|
|
|
when(paperService.findPaperById(ID)).thenReturn(paperWithId);
|
|
|
|
|
when(paperService.findById(ID)).thenReturn(paperWithId);
|
|
|
|
|
when(paperService.create(new Paper())).thenReturn(paperWithoutId);
|
|
|
|
|
when(deadlineService.saveOrCreate(new ArrayList<>())).thenReturn(deadlines);
|
|
|
|
|
when(conferenceUserService.saveOrCreate(new ArrayList<>())).thenReturn(conferenceUsers);
|