Deep Shah's Blog
Coding is an art. Not everyone is an Artist!
Showing posts with label
partial mock
.
Show all posts
Showing posts with label
partial mock
.
Show all posts
Sunday, August 29, 2010
How to mock/stub void static methods using PowerMock
›
In my previous post we saw how we could mock/stub void instance methods . In this post we will try our hands at mocking/stubbing another ex...
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" ...
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