Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

Re: [jmock-user] help requested in resolving - *unexpected invoaction*

Nat Pryce

2008-04-30

Replies: Find Java Web Hosting

Author LoginPost Reply
2008/4/30 Steve Freeman <steve@(protected)>:
> This what you got:
>
>
> accountService.registerNewAccount(<ext.se.ArrayOfAccount@(protected)>)
>
> this is what you expected:
>
>
> accountService.registerNewAccount(<ext.se.ArrayOfAccount@(protected)>);
>
> They're different instances. You need to either write a matcher or an
> equals method.

Also, I'd write a toString method so that you can see what the
difference is. As it stands, the error message is not very helpful.

--Nat

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

  http://xircles.codehaus.org/manage_email


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