This was frustrating
$ ./StockWatcherTest-hosted
.Loading module 'com.google.gwt.sample.StockWatcher.JUnit'
Loading inherited module 'com.google.gwt.sample.StockWatcher'
[ERROR] Unable to find 'com/google/gwt/sample/
StockWatcher.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?
E.Loading module 'com.google.gwt.sample.StockWatcher.JUnit'
Loading inherited module 'com.google.gwt.sample.StockWatcher'
[ERROR] Unable to find 'com/google/gwt/sample/
StockWatcher.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?
E
Time: 1.957
There were 2 errors:
1)
testSimple(com.google.gwt.sample.stockwatcher.client.StockWatcherTest)com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
226)
at com.google.gwt.dev.cfg.ModuleDefLoader
$2.load(ModuleDefLoader.java:174)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
270)
at
com.google.gwt.dev.cfg.ModuleDefLoader.createSyntheticModule(ModuleDefLoader.java:
89)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
614)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
150)
at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
at
com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
2)
testStockPriceCtor(com.google.gwt.sample.stockwatcher.client.StockWatcherTest)com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
226)
at com.google.gwt.dev.cfg.ModuleDefLoader
$2.load(ModuleDefLoader.java:174)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
270)
at
com.google.gwt.dev.cfg.ModuleDefLoader.createSyntheticModule(ModuleDefLoader.java:
89)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
614)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
150)
at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
at
com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
FAILURES!!!
Tests run: 2, Failures: 0, Errors: 2
$
FIX:
StockWatcherTest.java
--
from:
public String getModuleName() {
return "com.google.gwt.sample.StockWatcher";
}
--
to:
public String getModuleName() {
return "com.google.gwt.sample.stockwatcher.StockWatcher";
}
--
I believe I followed the tutorial very carefully (http://
code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-
toolkit-doc-1-5&t=GettingStartedJUnit) but not sure if this was my
mistake. Hopefully this post will help others.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---