• Post Reply Bookmark Topic Watch Topic
  • New Topic

mock object  RSS feed

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do




and


Doing the exact same thing of instantiating an instance of MyClass?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well no. The later creates the real object. The former does not create the real object but instead creates a mock.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!