protected void validate() { throw new FailImmediatelyException("Fail Immediately"); } }.check(10);
protected void validate() throws InvocationTargetException { FailImmediatelyException f = new FailImmediatelyException("Fail Immediately"); throw new InvocationTargetException(f); } }.check(10);
@Step(value = ".*call a passes within step method remotely it can be terminated immediately by FailImmediatelyException", retryDuration = 360) public void testFailImmediately() { passesWithinStartTime.compareAndSet(0, System.currentTimeMillis()); long zeroWhenFailingImmediately = (System.currentTimeMillis() - passesWithinStartTime.get()) / 1000; throw new FailImmediatelyException("Fail this step immediately - time elapsed " + zeroWhenFailingImmediately + " seconds"); }
@Step(value = ".*call a passes within step method it can be terminated immediately by FailImmediatelyException", retryDuration = 360) public void testFailImmediately() { passesWithinStartTime.compareAndSet(0, System.currentTimeMillis()); long zeroWhenFailingImmediately = (System.currentTimeMillis() - passesWithinStartTime.get()) / 1000; throw new FailImmediatelyException("Fail this step immediately - time elapsed " + zeroWhenFailingImmediately + " seconds"); }
@Step(".*call a passes within step method it can be terminated immediately by FailImmediatelyException") @PassesWithin(length=360, timeUnit = TimeUnit.SECONDS) public void testFailImmediately() { passesWithinStartTime.compareAndSet(0, System.currentTimeMillis()); long zeroWhenFailingImmediately = (System.currentTimeMillis() - passesWithinStartTime.get()) / 1000; throw new FailImmediatelyException("Fail this step immediately - time elapsed " + zeroWhenFailingImmediately + " seconds"); }
@Step(".*call a passes within step method remotely it can be terminated immediately by FailImmediatelyException") @PassesWithin(length=360, timeUnit = TimeUnit.SECONDS) public void testFailImmediately() { passesWithinStartTime.compareAndSet(0, System.currentTimeMillis()); long zeroWhenFailingImmediately = (System.currentTimeMillis() - passesWithinStartTime.get()) / 1000; throw new FailImmediatelyException("Fail this step immediately - time elapsed " + zeroWhenFailingImmediately + " seconds"); }