public class ExpectationHandler extends Object implements AggregateExpectation, IndividualExpectation
| Modifier and Type | Method and Description |
|---|---|
ExpectationHandler |
expect() |
ExpectationHandler |
expect(boolean masterSwitch) |
static ExpectationHandler |
expectationHandler() |
IndividualExpectation |
that(boolean active,
boolean condition)
An individual expectation from a call result.
|
IndividualExpectation |
that(boolean active,
Method method,
Object[] args)
An individual expectation from a call result.
|
public static ExpectationHandler expectationHandler()
public ExpectationHandler expect()
expect in interface AggregateExpectationpublic ExpectationHandler expect(boolean masterSwitch)
expect in interface AggregateExpectationpublic IndividualExpectation that(boolean active, boolean condition)
IndividualExpectationthat in interface IndividualExpectationactive - is the expectation active. If active, and the condition is false, an Exception will be raised.condition - is the condition to be checked. If the expectation is not [active], the truth value
of the condition is not relevant.
Additional functions can/will be developed.public IndividualExpectation that(boolean active, Method method, Object[] args)
IndividualExpectationthat in interface IndividualExpectationactive - is the expectation active. If active, and the condition is false, an Exception will be raised.method - is should be invoked if active (and any other conditions are met).
The idea is to allow the use of Hamcrest Matchers and Rest Assured assertions.
Additional functions can/will be developed.Copyright © 2016–2019. All rights reserved.