@Description("General test setup") @BeforeTest public void setup() { state.init(); scripter.reset(); state.reset(); out.println("-NEW TEST"); }
@TestStep("Add Meeting") public void addEvent() { User user = state.randomUser(); Date start = state.randomStartTime(); Date end = state.randomEndTime(start); ModelEvent event = state.createEvent(user, start, end); out.println("--ADDMEETING:" + event); scripter.addEvent(event); }
@TestStep("Remove Meeting") public void removeOrganizerEvent() { ModelEvent event = state.getAndRemoveOwnerEvent(); out.println("--REMOVEMEETING:" + event); scripter.removeEvent(event.getUser().getId(), event.getEventId()); }