Search the web
Sign In
New User? Sign Up
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Mock framework reviews   Message List  
Reply | Forward Message #19315 of 22211 |
Hi all,

I'm looking to use a Mock framework. I was using a home-grown one with
a previous employer, but that isn't (yet - I'm hopeful!) open-sourced
/ externally available, so I need to make a jump to another one.

I tried EasyMock (1.x) after reading JB's book a couple of years back
- I think the state of the art has moved on somewhat since then.

The closed framework that I used previously seems pretty similar in
terms of look and feel to rMock 2.0 and JMock 2.0, but I'm open to
other suggestions.

What experiences to people have to share?

Cheers,

James



Wed May 2, 2007 1:38 pm

taboozizi
Offline Offline
Send Email Send Email

Forward
Message #19315 of 22211 |
Expand Messages Author Sort by Date

Hi all, I'm looking to use a Mock framework. I was using a home-grown one with a previous employer, but that isn't (yet - I'm hopeful!) open-sourced /...
James Abley
taboozizi
Offline Send Email
May 2, 2007
1:41 pm

There are a lot of factors that come into play when evaluating a mock framework. You will probably find these somewhere online (because I am pretty sure...
Alexandru Popescu ...
alexpopescu7...
Offline Send Email
May 2, 2007
3:09 pm

... I think there is a lot of strong opinion, both positive and negative, to the JMock 2 API. Smalltalkers and Rubyists love it, others hate it. It's the most...
J. B. Rainsberger
nails762
Offline Send Email
May 11, 2007
8:25 am

... Probably. And you have presented only the first code line from the example, which is still unreadable: one(subscriber): does mean in fact that subscriber...
Alexandru Popescu ...
alexpopescu7...
Offline Send Email
May 11, 2007
10:14 am

Thanks for the responses. I am trying out JMock2 at the moment; I can develop on Java5 even though the production code gets deployed to Java4. I quite like the...
James Abley
taboozizi
Offline Send Email
May 11, 2007
12:39 pm

... I wrote a little helper class for Groovy which makes this have a more streamlined feel without altering the essential JMock2 style: context.checking{ ...
Paul King
paulk@...
Send Email
May 22, 2007
12:18 pm

... I wrote then that if I'd been able to use JMock 1.x for real before writing the book, my examples would have been with JMock 1.x. I stand by that...
J. B. Rainsberger
nails762
Offline Send Email
May 11, 2007
8:16 am

I´m using Easy Mock, but I think I´m using less than the framework can offer to me... I´m just using to return values. Does anyone here has used it for...
Gabriel Nascimento
gamnascimento@...
Send Email
May 18, 2007
11:54 am

... I'm /typically/ using RMock in quite the opposite way, I use the mocks to create expectations on the mock. The methods that I expect to be called...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
May 21, 2007
8:51 am

... Can you point to an example? I'm not sure whether I'm already using something like that, but it's always good to see what works for other people. Cheers, ...
James Abley
taboozizi
Offline Send Email
May 21, 2007
9:00 am

Hi James, ... Here's an example from my book that uses a similar mock object library (EasyMock) both for verifying expected collaboration (method invocations)...
Lasse Koskela
lassekoskela
Offline Send Email
May 21, 2007
9:40 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help