Thanks. Although the error message that it is not able to find the
source is misleading as it makes it seem like that it trying to
generate javascript out of it.

Regards
Kapil

On Sep 14, 7:26 pm, Arthur Kalmenson <[EMAIL PROTECTED]> wrote:
> It's not possible to use EasyMock in GWTTestCases. EasyMock requires
> Java Reflections (AFAIK), and therefore cannot be run in hosted mode.
> This is why you need to architect your application in such a way that
> most of your business logic lives in classes that don't use GWT
> widgets and are therefore testable outside of GWTTestCase.
>
> Regards,
> Arthur Kalmenson
>
> On Sep 13, 6:05 pm, ksachdeva <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I am trying to use the EasyMock in my unit tests and I am getting a
> > weired behavior. Here are the details of my configuration:
>
> > Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4
>
> > The error I am getting when I run my MyTest-hosted.launch
> > configuration from eclipse:
>
> > Compiling Java source files in module 'com.myns.MyModule.JUnit'
> >    Removing units with errors
> >       [ERROR] Errors in 'file:/C:/---removed-for-clarity------/test/
> > com/myns/client/subpackage/MyModuleTest.java'
> >          [ERROR] Line 25: No source code is available for type
> > org.easymock.EasyMock; did you forget to inherit a required module?
>
> > From error it seems like it is looking for JUnit / EasyMock
> > sources ????
>
> > My understanding was that in hosted mode there would be no conversion
> > to JavaScript so I should be able to use EasyMock to mock some of my
> > classes.
>
> > Here is how my methods look in the test case:
>
> >  public String getModuleName() {
> >     return "com.myns.MyModule";
> >   }
>
> >   public void testSimple() {
> >           SomeInterface mock = createMock(SomeInterface.class);
> >   }
>
> > If I remove the code for mocking from testSimple() then I can see that
> > my unit test work !!!
>
> > Please help
>
> > Regards
> > Kapil- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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