aspose file tools*
The moose likes Testing and the fly likes What is mocking framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "What is mocking framework" Watch "What is mocking framework" New topic
Author

What is mocking framework

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi Friends,

What is mocking framework, where and when can it be best used?

Thanks,


Poornima Sharma
SCJP 6.0
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You can find Mokito or Easy mock.

They can "trick" your code to think that they are using the real object.

Check out some samples of them.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hebert means Mockito.
Wikipedia has an excellent page about Mock Object.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Hussein Baghdadi wrote:Hebert means Mockito.
Thanks! [=
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Try jMock too just in case
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4456
    
    6

There's also PowerMock


Junilu - [How to Ask Questions] [How to Answer Questions]
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Not sure of this mentioned on http://code.google.com/p/powermock/

1.Mockito 1.8+ usage (requires PowerMock 1.3+)
2.Mockito 1.7 usage (requires PowerMock 1.2.5)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is mocking framework