Andrez Segovia

JUnit (2)

Form Param Request Matching with WireMock

The following is an example of how to use the withFormParam method to customize the response of a stub based on the value of a from parameter.

Validate the arguments passed to a method

The Mockito framework has the ArgumentCaptor class that can be use to validate the arguments passed to a mocked method.