Unit Testing – EasyMock

In continuation to what we discussed in our previous article regarding Unit Testing -Junit, EasyMock was introduce to avoid the strong dependancy or coupling between the 2 classes. So, in EasyMock we just inject the Class B while Testing a method of Class A (in a way similar to how we do Dependancy Injection in […]

Unit Testing – JUnit

Prior to getting into more details about JUnit, we need to understand what is meant by Unit testing. The best definition I have read about Unit Testing is as follows. We can split up Unit Testing to the following phases Test Setup : Define and Create all the Data and Objects we need for the […]