ScheduleGroup.class, scheduleGroup);
}
@Test
public void testScheduleExecutionDao() throws Exception {
ScheduleGroup scheduleGroup = new ScheduleGroup();
scheduleGroup.setName("dgfsrgw");
businessEntityDao.save(scheduleGroup);
ScheduleAction scheduleAction = new ScheduleAction();
scheduleAction.setArchived(true);
scheduleAction.setCreated(ChronometerUtils.parseMoment("2011-01-01 12:00:00.000 UTC"));
scheduleAction.setIdentifier("none");
scheduleAction.setDefinition("<xml></xml>".getBytes());
scheduleAction.setUsedDate(new Date(300000000000L));
scheduleAction.setUsedCount(2);
businessEntityDao.save(scheduleAction);
ScheduleJob scheduleJob = new ScheduleJob();
scheduleJob.setCreated(new Date(300000000000L));
scheduleJob.setModified(new Date(300000000000L));
scheduleJob.setName("dgfsrgw");
scheduleJob.setDescription("wgwrgwg");
scheduleJob.setCron("0 * * * * ?");
scheduleJob.setTimezone("UTC");
scheduleJob.setEnabled(true);
scheduleJob.setStandby(false);
scheduleJob.setAllNodes(true);
scheduleJob.setStrategy(ScheduleExecutionStrategy.CIRCULAR);
scheduleJob.setTimeout(1000);
scheduleJob.setNodesLimit(1);
scheduleJob.setAction(scheduleAction);
scheduleJob.setGroup(scheduleGroup);
scheduleGroup.getJobs().add(scheduleJob);
businessEntityDao.save(scheduleJob);
ScheduleExecution scheduleExecution = new ScheduleExecution();
scheduleExecution.setStrategy(ScheduleExecutionStrategy.CIRCULAR);
scheduleExecution.setName("rgwrgr");