Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mock without interface  RSS feed

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
is there a mock framework atht not require to have inetrface of the mock object?

thank you
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easymock has a Class Extension that allows you to mock classes. There are some restrictions so check that page.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mockito can mock classes, although not final ones. It's my current mocking of choice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!