Introduction to EasyMock 1. Introduction In the past, we’ve talked extensively about JMockit and Mockito. In this tutorial, we’ll give an introduction to another mocking tool – EasyMock. 2. Maven Dependencies Before we dive in, let’s add the following dependency to our pom.xml: <dependency> <groupId>org.easymock</groupId> <artifactId>easymock</artifactId> <version>3.5.1</version> <scope>test</scope> </dependency> The… Continue Reading easymock

EasyMock Argument Matchers 1. Overview In this tutorial, we’ll explore EasyMock argument matchers. We’ll discuss different types of predefined matchers and how to create a custom matcher as well. We already covered EasyMock basics in the introduction to EasyMock article, so you may need to read it first to get yourself… Continue Reading easymock-argument-matchers