TestResult - The type of test result produced by the Whenpublic interface WithFluentBdd<TestResult> extends FluentBddCommands<TestResult>
fluentBdd() method by providing a reference to a FluentBdd that is
a field of your test, annotated with a JUnit Rule.| Modifier and Type | Method and Description |
|---|---|
FluentBdd<TestResult> |
fluentBdd()
This should be implemented by referring to a
FluentBdd field that is annotated as a JUnit Rule. |
default void |
given(Given given)
Prime the given immediately.
|
default <Then> Then |
then(ThenAssertion<Then,TestResult> thenAssertion)
Perform an assertion.
|
default void |
then(ThenVerification<TestResult> thenVerification)
Perform a verification, which should be built up inside the brackets.
|
default TestResult |
theResult()
Fetch the result, if it has been computed yet.
|
default <T extends When<TestResult>> |
when(T when)
Invoke the system under test and store the
TestResult ready for the assertions. |
and, and, and, and, given, whenCallingFluentBdd<TestResult> fluentBdd()
FluentBdd field that is annotated as a JUnit Rule.FluentBdd.default TestResult theResult()
FluentBddCommandstheResult in interface FluentBddCommands<TestResult>TestResult.default void given(Given given)
FluentBddCommandsgiven in interface FluentBddCommands<TestResult>given - The first given in the acceptance test, which should be built up inside the bracketsdefault <T extends When<TestResult>> void when(T when)
FluentBddCommandsTestResult ready for the assertions.when in interface FluentBddCommands<TestResult>T - The type of Whenwhen - The system under test, which should be built up inside the bracketsdefault <Then> Then then(ThenAssertion<Then,TestResult> thenAssertion)
FluentBddCommandsthen in interface FluentBddCommands<TestResult>Then - The type of fluent assertions that will be performedthenAssertion - A ThenAssertion that will produce a Then given the stored TestResultdefault void then(ThenVerification<TestResult> thenVerification)
FluentBddCommandsthen in interface FluentBddCommands<TestResult>thenVerification - A ThenVerification, which should be built up inside the bracketsCopyright © 2016. All rights reserved.