MasterSlaveJobSummaryServiceImpl extends AbstractService implements MasterSlaveJobSummaryService { @Override public List<MasterSlaveJobSummary> getAllJobSummaries() { return baseDao.getAll(MasterSlaveJobSummary.class); }  @Override List<MasterSlaveJobSummary> getAllJobSummaries(); @Override synchronized void saveJobSummary(MasterSlaveJobSummary masterSlaveJobSummary); @Override void updateJobSummary(MasterSlaveJobData.Data data); @Override void updateJobSummary(String id); @Override MasterSlaveJobSummary getJobSummary(String id);  }
@Test public void getAllJobSummaries() { List<MasterSlaveJobSummary> jobSummaries = masterSlaveJobSummaryService.getAllJobSummaries(); Assert.assertNotNull(jobSummaries); Assert.assertTrue(jobSummaries.size() == 0); masterSlaveJobService.saveJob(getSampleJarFile(), "com.zuoxiaolong"); jobSummaries = masterSlaveJobSummaryService.getAllJobSummaries(); Assert.assertNotNull(jobSummaries); Assert.assertTrue(jobSummaries.size() == 2); }