public TestResultContainer withStop(Long value) { setStop(value); return this; }
/** * @deprecated use set method */ @Deprecated public TestResultContainer withStop(final Long value) { return setStop(value); }
/** * Stops test container by given uuid. * * @param uuid the uuid of container. */ public void stopTestContainer(final String uuid) { final Optional<TestResultContainer> found = storage.getContainer(uuid); if (!found.isPresent()) { LOGGER.error("Could not stop test container: container with uuid {} not found", uuid); return; } final TestResultContainer container = found.get(); notifier.beforeContainerStop(container); container.setStop(System.currentTimeMillis()); notifier.afterContainerUpdate(container); }