expect
Creates an Expect for the given subject.
Return
The newly created Expect.
Parameters
The subject for which we are going to postulate expectations.
Throws
in case an assertion does not hold.
Creates an Expect for the given subject and appends the expectations the given assertionCreator-lambda creates as group to it.
Return
The newly created Expect.
Parameters
The subject for which we are going to postulate expectations.
expectation-group with a non-fail fast behaviour.
Throws
in case an assertion does not hold.
Creates an Expect for the given (unrelated) newSubject.
We recommend to use its
or feature
or another feature extractor if you want to extract a feature out of the current subject.
Return
The newly created Expect.
Since
1.0.0
Parameters
The subject for which we are going to postulate expectations.
Throws
in case an assertion does not hold.
Creates an Expect for the given (unrelated) newSubject and appends the expectations the given assertionCreator-lambda creates as group to it.
Consider to use expectGrouped instead of expect as expectation entry point if you want to state expectations about several unrelated subjects. expectGrouped fulfills exactly this purpose.
We recommend to use its
or feature
or another feature extractor if you want to extract a feature out of the current subject.
Return
The newly created Expect.
Since
1.0.0
Parameters
The new subject for which we are going to postulate expectations.
expectation-group with a non-fail fast behaviour.
Creates an Expect for the given subject.
Return
The newly created Expect.
Since
1.1.0
Parameters
The new subject for which we are going to postulate expectations.
Creates an Expect for the given subject and appends the expectations the given assertionCreator-lambda creates as group to it.
Return
The newly created Expect.
Since
1.1.0
Parameters
The new subject for which we are going to postulate expectations.
has to create at least one expectation where all are wrapped into an expectation-group with a non-fail fast behaviour.