Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] custom Matcher necessary?

Jeroen Verhagen

2008-06-04

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

I'm using jMock 2.4.0 to junit test my code.

In the following test example:

one(message).setContent(with(aNonNull(StringBuffer.class)));

Is it somehow possible to capture and inspect the value that is passed
to the method setContent()? Or do I have to write a custom Matcher to
do that?

--

regards,

Jeroen

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

  http://xircles.codehaus.org/manage_email


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