I'm just setting up the environment for testing my GWT app with jUnit
tests.

Just some sidenotes before:
Dev environment: Eclipse on Snow Leopard
GWT version: 1.7.1 (installed with Google Eclipse Plugin)

Since - unfortunately - the Google Plugin doesn't yet have a wizard
for creating jUnit tests, I've used the jUnitCreator command line tool
for doing this.

The structure of my project (created by the GPlugin) looks like
src
  com.mycompany.myappname
     Myappname.gwt.xml
  com.mycompany.myappname.client
  ...
  com.mycompany.myappname.server
  ...

Now when I used the jUnitCreator, it was modified like
src
  com.mycompany.myappname
     Myappname.gwt.xml
  com.mycompany.myappname.client
  ...
  com.mycompany.myappname.server
  ...
test
  com.mycompany.myappname.tests
     MyAppnameTest.java

Beside having to fix some issues like declaring the generated test
folder to be a source folder and including the jUnit library, the
generated getModuleName inside the GWTTestcase was

  public String getModuleName() {
    return "com.mycompany.myappname";
  }

That would be all fine, but then, when I tried to launch the test, I
got the error message
[ERROR] Unable to find 'com/mycompany/myappname.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?

That's weird! Why is it looking for the myappname.gwt.xml inside 'com/
mycompany' while it should look inside 'com/mycompany/myappname/'???

Someone has an idea how to fix this best, without having to mess
around with the standard project structure too much?

Thx a lot.
--~--~---------~--~----~------------~-------~--~----~
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