Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] Matching null array argument

Kevin

2010-09-30

Replies: Find Java Web Hosting

Author LoginPost Reply
I've got a tough one, searched and searched for the answer.

My interface has a method named myMethod(String[]);

I'm trying to mock up the interface, and during the unit test, the code calls
myMethod(null);

I can't write an expectation that will successfully match this. I either run
into syntax errors in my IDE, or it fails to match at runtime.

Any help is appreciated. Thanks.


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

  http://xircles.codehaus.org/manage_email


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