/** * Test method for {@link * org.apache.taverna.platform.report.StatusReport#setPausedDate(java.util.Date)}. */ @Test public void testSetPausedDate() { Date now = new Date(); statusReport.setPausedDate(now); assertEquals(now, statusReport.getPausedDate()); assertEquals(State.PAUSED, statusReport.getState()); }
/** Test method for {@link org.apache.taverna.platform.report.StatusReport#StatusReport()}. */ @Test public void testStatusReport() { Date preCreationTime = new Date(); statusReport = new StatusReport<Workflow, StatusReport<?, ?>>(null); assertFalse(statusReport.getCreatedDate().before(preCreationTime)); assertFalse(statusReport.getCreatedDate().after(new Date())); assertEquals(State.CREATED, statusReport.getState()); assertTrue(statusReport.getPausedDates().isEmpty()); assertTrue(statusReport.getResumedDates().isEmpty()); assertNull(statusReport.getCancelledDate()); assertNull(statusReport.getCompletedDate()); assertNull(statusReport.getFailedDate()); assertNull(statusReport.getPausedDate()); assertNull(statusReport.getResumedDate()); assertNull(statusReport.getStartedDate()); }
/** Test method for {@link org.apache.taverna.platform.report.StatusReport#getPausedDate()}. */ @Test public void testGetPausedDate() { assertNull(statusReport.getPausedDate()); }