ahmaddarawshi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

Add possibility to mock hashcode and equals in the EasyMock extension API #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any further.

Original issue reported on code.google.com by johan.ha...@gmail.com on 29 Jan 2009 at 9:58

GoogleCodeExporter commented 9 years ago
hi,

it seems that it's not yet possible to mock the hashCode() method (or i'm 
missing
something). i tried both classic mocking, and method stubbing without any luck 
(see
attached class):
- Power Mockito 1.3.6 Full
- Windows Xp
- jdk 1.5

godspeed,
G

Original comment by corneliu...@gmail.com on 9 Apr 2010 at 12:48

Attachments:

GoogleCodeExporter commented 9 years ago
Yes this is true :/ It has not been prioritized. Thanks for the test case.

Original comment by johan.ha...@gmail.com on 12 Apr 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Works from r1294 in the Mockito API extension. In EasyMock this is still not 
available.

Original comment by johan.ha...@gmail.com on 12 Apr 2010 at 2:08