I was going through the mocking framework for the testing purpose. Can someone post sample code where i can see test though junit will be not appropriate as compare with easymock.
Right, you are telling EasyMock that getPrice("EBAY") will be called once on marketMock, and to return 20.0 when that happens. However you try to verify that result before performing any actions that would make the call. Try moving the verify to the last line of the test.
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
a bit of art, as a gift, that will fit in a stocking