コード例 #1
0
 public void testGetSchedule() throws Exception {
   TimeScheduleEditor editor = new TimeScheduleEditor(shell);
   editor.getInput().add(new MarketTimeElement(getTime(9, 0), getTime(16, 0)));
   editor.getInput().get(0).setDescription("Description");
   MarketTime[] schedule = editor.getSchedule();
   assertEquals(1, schedule.length);
 }
コード例 #2
0
 public void testCreateEmpty() throws Exception {
   TimeScheduleEditor editor = new TimeScheduleEditor(shell);
   assertEquals(0, editor.getViewer().getTable().getItemCount());
   assertEquals(0, editor.getSchedule().length);
 }