@Autowired
private EventService eventService;
@Test
public void createEvent() {
Event event = new Event();
event.setTitle("event title");
event.setContent("event content");
event.setBegin(new Date());
event.setEnd(new Date());
event.setCreatedAt(new Date());
event.setModifiedAt(new Date());
event.setCreatedById(1);
event.setModifiedById(1);
event.setProjectId(1);
event.setCategoryId(1);
//
eventService.createEvent(event);
}