Monday, November 30, 2009

Problem with JUnit testing if there's a tag in a module definition xml

Hi,

I'm getting a problem with unit tests if there's a <stylesheet> tag in
the module definition xml.

Here's the module that cauases problems:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//
EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-
source/core/src/gwt-module.dtd
">
<module rename-to='xxx'>
<inherits name='com.google.gwt.user.User'/>

<inherits name='com.google.gwt.user.theme.standard.Standard'/>

<stylesheet src="../GWT-default.css"/>

<source path="core"/>
<source path="client"/>

<entry-point class='com.xxx.xxx.xxx.Xxx'/>
</module>

The error in my Eclipse console reads:

Starting HTTP on port 0
HTTP listening on port 62518
Loading module 'GWT-default.css'
[ERROR] Invalid module name: 'GWT-default.css'
Loading module 'GWT-default.css'
[ERROR] Invalid module name: 'GWT-default.css'
The development shell servlet received a request to generate a host
page for module 'GWT-default.css'
Loading module 'GWT-default.css'
[ERROR] Invalid module name: 'GWT-default.css'

If I remove the <stylesheet src="../GWT-default.css"/> from the above
xml, the test is passed ok.

Any ideas?


Thanks in advance.

--

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate