In this post under Mockito, I will show with example how to create a mock of a class. For our example I will use the “Calculator” class with below structure. Calculator package package1; public class Calculator { public int add(int x, int y) { return x + y; } public int multiple(int x, int y)…… Continue reading Creating a mock