Tag Archives: JMockit

Use Hamcrest Matchers in JMockIt

JMockIt, when used together with Hamcrest matchers, can sometimes create very flexible verifications in unit test. This is demonstrated in the gist here. The test class GameConrollerTest defines a test target (with @Tested) and a mocked object (in this case … Continue reading

Posted in Java | Tagged , , , , | Leave a comment