Wednesday, November 24, 2010

Capturing the parameters passed to expected methodof your mock item

We all use easymock to mock java objects to speed up developing our unit tests and focus on the code fragment.

I would like to point out a great feature of this framework which is not known very much. You need to be familiar with easymock already to get the point.

You can capture the object that is passed to your expectation. Please see the code below with comments.


As you might already noticed above, you can easily get the passed object from capturer object. Capturer object was used with static method "capture" of easymock.

Monday, November 15, 2010

Amazon App Store for Android

Rumors and reports of an Amazon competitor to Google’s own Android App Store were confirmed today with Amazon’s invitation letter to developers, posted here on Ubergizmo. The Amazon App Store, while not particularly shocking news, has several important implications that go way beyond just another source of Apps for Android phone users.

Read full article here.