Deep Shah's Blog
Coding is an art. Not everyone is an Artist!
Showing posts with label
powermocks
.
Show all posts
Showing posts with label
powermocks
.
Show all posts
Thursday, October 31, 2013
An Author Is Born - Instant Mock Testing with PowerMock
›
After quite a few long nights and working weekends, finally the book written by me on PowerMock is published and is available to be bought ...
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) - ...
Saturday, July 17, 2010
How to fix the OutOfMemoryError when writing tests with PowerMock - Part - 2
›
In my previous post we had a look at How to fix the OutOfMemoryError when writing tests with PowerMock Looks like, the method I describe...
Saturday, July 3, 2010
How to fix the OutOfMemoryError when writing tests with PowerMock
›
We use PowerMock (With the Mockito Api ) in our current project as the Mocking/Stubbing framework. It has worked our really well so far! ...
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 21, 2010
How to suppress static initializers using PowerMock
›
In my previous post we saw how we could test methods of class whose constructor does evil stuff . What if the static initializer of the cla...
Wednesday, June 16, 2010
How to test methods of a class whos constructor is evil, using PowerMock
›
As promised in my previous post , today I will show, the second way to write test cases for methods of a class whose constructor does crazy ...
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...
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 ...
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