Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is mocking framework  RSS feed

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

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

Thanks,
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hebert means Mockito.
Wikipedia has an excellent page about Mock Object.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hussein Baghdadi wrote:Hebert means Mockito.
Thanks! [=

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try jMock too just in case
 
Sheriff
Posts: 11826
193
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also PowerMock
 
Siitesh Hind
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!