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);
 }
 public void testCreateEmpty() throws Exception {
   TimeScheduleEditor editor = new TimeScheduleEditor(shell);
   assertEquals(0, editor.getViewer().getTable().getItemCount());
   assertEquals(0, editor.getSchedule().length);
 }