Package cz.xtf.core.waiting.failfast
Class MultipleFailFastChecksHandler
- java.lang.Object
-
- cz.xtf.core.waiting.failfast.MultipleFailFastChecksHandler
-
- All Implemented Interfaces:
FailFastCheck
public class MultipleFailFastChecksHandler extends Object implements FailFastCheck
Handler for multipleFailFastCheckinstances. Checks every instance and if one of them fails (FailFastCheck.hasFailed()returns true) returnstrueand provide reason of that check.
-
-
Method Detail
-
hasFailed
public boolean hasFailed()
- Specified by:
hasFailedin interfaceFailFastCheck- Returns:
- true if there is some error and waiter can fail immediately
-
reason
public String reason()
- Specified by:
reasonin interfaceFailFastCheck- Returns:
- reason why
FailFastCheck.hasFailed()have returnedtrue
-
-