This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Using Mockito with JUnit
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
In this lesson with Mockito, we will use another framework for complete testing, known as JUnit. According to JUnit website, JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. With Mockito, creating mock objects is very easy. It provides many simple annotations to do so. Internally, a mock is nothing but a proxy for the actual class instance. Here are steps to create Mockito JUnit example. Step 1: Create a simple java maven project. Maven Dependency Step 2: Add required dependencies to pom.xml A Maven dependency is the fastest