Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] More sophisticated returnValue ?

Paul Hammant

2008-03-20

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a listener that I'm mocking. one method does -

 Foo didSomerthing(Foo foo);

For the cases I'm looking at, it always returns what was passed in.

It would be nice to have

        one(listener). didSomerthing(with(any(Foo.class)));
        will(returnParamOfSameClass());

or whatever would be more correct.

- Paul

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.