File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes How to mock object which doesnt implement any interface using EasyMock? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to mock object which doesnt implement any interface using EasyMock?" Watch "How to mock object which doesnt implement any interface using EasyMock?" New topic
Author

How to mock object which doesnt implement any interface using EasyMock?

Jatin Vasa
Greenhorn

Joined: Aug 24, 2010
Posts: 2
Hi Friends

Can we mock a class which doesnt implement interface.

Thanks
Jatin Vasa
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29244
    
139

Jatin,
Welcome to JavaRanch!

You can use the EasyMock class extension to mock objects that don't provide interfaces.


[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
Jatin Vasa
Greenhorn

Joined: Aug 24, 2010
Posts: 2
Thanks. I used the same....
Thanks again for reply...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to mock object which doesnt implement any interface using EasyMock?
 
Similar Threads
thread problem . want to break free?
What is the word "implement" in the real exam mean?
Serializable interface
Implement Serializable judiciously?
why doesnt this compile?