InstanceFlowServiceImpl implements InstanceFlowService { public int cleanHistory(Date minKeepTime) { return instanceFlowDao.cleanHistory(minKeepTime); }  @Override int[] batchInsert(List<InstanceFlow> entityList); int cleanHistory(Date minKeepTime); @Override List<InstanceFlow> getByQuery(InstanceFlowQuery query); @Override List<InstanceFlow> getRecentInstances(Date startCreateTime, String status); @Override List<LoopRate> getLoopRates(Date date0, Date date1, Date date2);  }
@Test public void testCleanHistory(){ instanceFlowService.cleanHistory(new Date()); }