How to mock third party API via EasyMock ?
Ex:
2 classes - Employee
- our class, NPECustomer
- Third Party class
Assume Employee
has createCustomer
method with the following code
createCustomer(Employee emp) {
NPECustomer customer = new NPECustomer();
customer.add
customer.finalize
more customer. method and it goes on...
- Now the question is how to mock third party API via easy Mock
- What are the alternate ways to solve the above problem if Mocking the third party API is not feasible or tedious