@Override public TestResult withStart(Long value) { setStart(value); return this; }
/** * @deprecated use set method. Scheduled to removal in 3.0 release. */ @Deprecated @Override public TestResult withStart(final Long value) { return setStart(value); }
/** * Starts test case with given uuid. In order to start test case it should be scheduled at first. * * @param uuid the uuid of test case to start. */ public void startTestCase(final String uuid) { threadContext.clear(); final Optional<TestResult> found = storage.getTestResult(uuid); if (!found.isPresent()) { LOGGER.error("Could not start test case: test case with uuid {} is not scheduled", uuid); return; } final TestResult testResult = found.get(); notifier.beforeTestStart(testResult); testResult .setStage(Stage.RUNNING) .setStart(System.currentTimeMillis()); threadContext.start(uuid); notifier.afterTestStart(testResult); }
@Override public void testIgnored(final Description description) { final String uuid = testCases.get(); testCases.remove(); final TestResult result = createTestResult(uuid, description); result.setStatus(Status.SKIPPED); result.setStatusDetails(getIgnoredMessage(description)); result.setStart(System.currentTimeMillis()); getLifecycle().scheduleTestCase(result); getLifecycle().stopTestCase(uuid); getLifecycle().writeTestCase(uuid); }