コード例 #1
0
 @Description("General test setup")
 @BeforeTest
 public void setup() {
   state.init();
   scripter.reset();
   state.reset();
   out.println("-NEW TEST");
 }
コード例 #2
0
 @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);
 }
コード例 #3
0
 @TestStep("Remove Meeting")
 public void removeOrganizerEvent() {
   ModelEvent event = state.getAndRemoveOwnerEvent();
   out.println("--REMOVEMEETING:" + event);
   scripter.removeEvent(event.getUser().getId(), event.getEventId());
 }