Deep Shah's Blog

Coding is an art. Not everyone is an Artist!

Showing posts with label spy. Show all posts
Showing posts with label spy. Show all posts
Monday, June 28, 2010

How to suppress fields with PowerMock

›
Now why would you want to do that! Lets look at the code straightaway. Code under test: The AccountDAO class has a "session" ...
Monday, June 7, 2010

How to supress methods and constructors using PowerMock

›
We have come a long way in our how-to series, demonstrating the power of PowerMocks (with the Mockito api).  I hope you are liking it as mu...
Tuesday, May 25, 2010

How to partially mock a class and its private methods using PowerMock

›
Earlier, in the how-to series we had seen how-to mock constructors .  In this post we will have a look at how-to partially mock classes and...
›
Home
View web version
Powered by Blogger.