public TestCaseResult withStop(long value) { setStop(value); return this; }
@Override public void process(TestCaseResult testCase) { testCase.setStop(System.currentTimeMillis()); } }
/** * Sets stop time to specified testCase * * @param testCase which will be changed */ @Override public void process(TestCaseResult testCase) { testCase.setStop(System.currentTimeMillis()); } }
/** * If test not finished yet (in our case if stop time is zero) mark it as interrupted. * Set message, stop time and status. */ public void markTestcaseAsInterruptedIfNotFinishedYet(TestCaseResult testCase) { if (testCase.getStop() == 0L) { testCase.setStop(System.currentTimeMillis()); testCase.setStatus(Status.BROKEN); testCase.setFailure(new Failure().withMessage("Test was interrupted")); } } }