• Post Reply Bookmark Topic Watch Topic
  • New Topic

mock object

 
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
Marshal
Posts: 35743
412
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!