On 25 oct, 14:32, "[email protected]" <[email protected]> wrote:
> On Oct 25, 9:11 am, lowecg2004 <[email protected]> wrote:
>
> > Your error looks like you're using the EasyMock class extensions and
> > are missing cglib jars from your build path.
>
> > As it happens, I recently produced a getting started with MVP and unit
> > testing with EasyMock article which might be of use:
>
> >http://blog.hivedevelopment.co.uk/2009/10/introduction-to-mvp-unit-te...
>
> Hi! Thanks for the heads up -- however, I find a couple of details:
>
> * I added asm-3.1.jar and cglib-2.2.jar, which were in the GWT 2.0
> tools/lib directory, but there was no asm-attrs.jar; do you still need
> it?
>
> * When running an empty JUnit (*not* GWTTestCase) test, which just
> does loginViewMock=createMock(LoginView.class) I get another
> exception... The GWT.create( ) problem -- how did you handle it? Or
> did I miss a step in your article?

You'd generally mock your LoginPresenter.Display interface (or however
you called it, your probably have one; otherwise, here is when it is
useful to have one ;-) ), not your LoginView, which uses widgets,
which need GWTMockUtilities (but it does not always work: History for
instance cannot be used in "pure Java", even with
GWTMockUtilities.disarm()).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to