Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EasyMock: replace final method

 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Folks!
I'm trying to replace final method with custom method with EasyMock, but it doesn't call redefined method - it calls original one.
Can somebody put me right how to EasyMock for that purpose?



Output:
Error1: no last call on a mock available
5


Expected output:
7


 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or maybe it's not even possible to replace method call with mock-method?
Why to use EasyMock then?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic