assertTrue("Batch has incorrect timestamp=" + batchDate.getTime() + " should be between " + minTime + " and " + maxTime, batchDate.getTime() >= minTime && batchDate.getTime() <= maxTime); Date reportDate = report.getReportTimestamp().getTime(); Date reportStartDate = report.getJobStartTime().getTime(); Date reportEndDate = report.getJobEndTime().getTime();
Date reportDate = report.getReportTimestamp().getTime(); assertTrue("Job Report has incorrect timestamp", reportDate.getTime() >= minTime && reportDate.getTime() <= maxTime); assertEquals("Job Report has incorrect successful batch counts", successfulBatchCount.get(),report.getSuccessBatchesCount());