aspose file tools*
The moose likes Testing and the fly likes mock object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "mock object" Watch "mock object" New topic

mock object

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316


Doing the exact same thing of instantiating an instance of MyClass?
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29248

Well no. The later creates the real object. The former does not create the real object but instead creates a mock.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: mock object
Similar Threads
Calling class methods by class object using Reflection
From main method to contractor, it is possible?
GC question, OCP book Exam 2 Question 1
Why this private member can be seen?
using this in a class itself