Blog Archives

Mocking Final Classes with Mockito

I have used PowerMock with Mockito for mocking final Class. Following are Maven dependencies for PowerMock and Mockito. Eg. pom.xml Scenario We have final class called TestFinal.java with public method called Send(String parameter). Need to mock Send method. How we

Tagged with: , , , , , ,
Posted in Uncategorized