Closed
Description
Example:
given(theInventory.willReturn().aDirectoryNumber(DIR_NUM));
when(theClientRequestsADirectoryNumbersDetails());
then(theResponse).hasCode(200);
and(theResponse).containsDetails(DIR_DETAILS);
In the event that my then's have to be in a specific order and my first assertion doesn't use the then()
framework (e.g a wiremock verify
), the framework then complains that I have not provided a then()
before my and()
's.