fix Test-setUp
This commit is contained in:
@ -36,12 +36,11 @@ class EventServiceTest {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EventRepository eventRepository;
|
private EventRepository eventRepository;
|
||||||
@Autowired
|
|
||||||
private EventService eventService;
|
private EventService eventService;
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setUp() {
|
void setUp() {
|
||||||
|
eventService = new EventService(mock(JsonService.class), eventRepository);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user