public EventualConsequence<T> withNoReporting() { return new EventualConsequence<T>(consequenceThatMightTakeSomeTime, timeout, true); } }
@Override public <T extends Actor> void performAs(T actor) { actor.should(eventually(seeThat(the(target), expectedState)) .withNoReporting() .waitingForNoLongerThan(amount).milliseconds()); } };
return; } catch (AssertionError assertionError) { if (!shouldIgnoreException(assertionError)) { caughtAssertionError = assertionError; if (!shouldIgnoreException(runtimeException)) { caughtRuntimeException = runtimeException; if (!shouldIgnoreException(exception)) { throw exception; pauseBeforeNextAttempt(); } while (stopwatch.lapTime() < timeout); throwAnyCaughtErrors();
@Override public <A extends Actor> void performAs(A actor) { actor.should(eventually(seeThat(WebElementQuestion.the(target), expectedState)).withNoReporting()); }
@Override public <T extends Actor> void performAs(T actor) { actor.should(eventually(seeThat(the(target), expectedState)) .withNoReporting() .waitingForNoLongerThan(amount).seconds()); } };
public EventualConsequence<T> seconds() { return new EventualConsequence<T>(consequence, amount * 1000); } }
public static <T> EventualConsequence<T> eventually(Consequence<T> consequenceThatMightTakeSomeTime) { return new EventualConsequence(consequenceThatMightTakeSomeTime); }
public EventualConsequence<T> milliseconds() { return new EventualConsequence<T>(consequence, amount); }
@Override public Consequence<T> orComplainWith(Class<? extends Error> complaintType) { return new EventualConsequence(consequenceThatMightTakeSomeTime.orComplainWith(complaintType)); }
@Override public Consequence<T> orComplainWith(Class<? extends Error> complaintType, String complaintDetails) { return new EventualConsequence(consequenceThatMightTakeSomeTime.orComplainWith(complaintType, complaintDetails)); }
@Override public Consequence<T> whenAttemptingTo(Performable performable) { return new EventualConsequence<T>(consequenceThatMightTakeSomeTime.whenAttemptingTo(performable)); }
@Override public Consequence<T> because(String explanation) { return new EventualConsequence<T>(consequenceThatMightTakeSomeTime.because(explanation)); }