I am currently using gwt 2.3 and smartgwtpower 2.5 nightly and using
Eclipse on Linux. My web app is using common code, developed in house,
and packaged to a jar called commonsmartgwt.jar. In this jar is the
entry point class and has its own gwt.xml file. In my web app's
gwt.xml file I inherit from the entry point class <inherits
name="common.code.Common"/> and I use the entry point is
common.code.client.Common as my web app's entry point. All my classes
in my web app extend classes in the common code. Compilation works
fine but when I try to run a test, I get the following error. Unable
to find common/code/Common.gwt.xml on your classpath; could be a typo,
or maybe you forgot to include a classpath entry for source. If I
create the folder common/code/ under classes and extract the .gwt.xml
file from the commonsmartgwt.jar and put it in that directory, I get a
different error. com.google.gwt.junit.JUnitFatalLaunchException: The
test class 'my.package.client.MyFirstTest' was not found in module
'common.client.Common'; no compilation unit for that type was seen
    at
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:
743)
    at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
1346)
    at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
1309)
    at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
    at
com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:
296)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:
130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)
Is there a way to Unit test this application. Please let me know if my
situation is not clear.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to