Yes, Thomas is correct. At the moment, servlets that are needed for unit
testing must be defined via module files. Hopefully we'll be able to read
from a web.xml file for testing in the future.

On Tue, May 19, 2009 at 3:59 AM, Thomas Broyer <[email protected]> wrote:

>
>
>
> On 19 mai, 07:38, Raman <[email protected]> wrote:
> > I think I missed an important point in my earlier post.
> > The servlets ARE hosted correctly when I run in hosted mode.
> > But they do not get hosted when I run my junit tests.
> [...]
> > When I run the junit tests for my module, this web.xml is not
> > considered at all.
> > But I add a servlet tag to my module.xml as
> > <servlet path="/eventd" class="MyPackage.EventServlet" />
> > the servlet gets hosted and my unit tests can successfully connect to
> > the servlets.
> > I can even remove web.xml and still it would work fine.
> >
> > What I suspect is that there is some difference in the way servlet
> > mapping are to be specified while running junit tests.
>
> Actually, AFAICT, unit tests use the GWTShell, not the HostedMode;
> hence this difference.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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