Deep Shah's Blog
Coding is an art. Not everyone is an Artist!
Showing posts with label
state based testing
.
Show all posts
Showing posts with label
state based testing
.
Show all posts
Sunday, August 29, 2010
How to mock/stub void methods using PowerMock
›
Ok, I had though that the previous post would be the last post in the how-to series, but there are so many features in PowerMock that I am...
Saturday, July 24, 2010
How to use custom argument matchers using PowerMock
›
We have come a long way and most likely this will be the last post in the series of how-to do stuff using PowerMock's (Mockito api) - ...
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...
Tuesday, May 11, 2010
Testing the Untestable code using PowerMock (Mockito api)
›
Taking inspiration from this excellent post by Johan Haleby , today I am going to jump a few gears and show you the real power of PowerMoc...
Monday, May 10, 2010
How to mock final methods and classes using PowerMock
›
This is the second post in the how-to series of using PowerMockito to write beautiful unit-tests. In my previous post we saw how can we ...
Tuesday, May 4, 2010
How to mock static methods using PowerMock
›
OK, what are we up to today! Today I will demonstrate how can we write unit test for a class that invokes a static method on another class ...
›
Home
View web version