Deep Shah's Blog

Coding is an art. Not everyone is an Artist!

Showing posts with label interaction based testing. Show all posts
Showing posts with label interaction based testing. 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...

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...
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...

How to mock constructors using PowerMock

›
In the how-to series today I will show how-to mock constructors using PowerMocks - Mocks on Steroids! .  In my previous post we saw how ca...
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 ...
›
Home
View web version
Powered by Blogger.