...
Code Block |
---|
public void testSubmitNewJobsMakesDuplicateReductionInfo() {
clearExistingJobs();
...
}
/**
* Clear the existing jobs by running a <code>submitNewJobs</code> on the scheduler.
*
* @throws Exception
*/
private void clearExistingJobs() throws Exception {
Method submitNewJobMethod = ReflectUtils.getPrivateMethod(HarvestScheduler.class, "submitNewJobs");
submitNewJobMethod.invoke(harvestScheduler);
} |
...