Tuesday, October 6, 2009

Re: Cumbersome jUnit setup

Ok...sounds straightforward and I actually also tried that, but if I
change it like you mentioned and then run the sample dummy test
generated by the jUnitCreator, it will give me the following error:

com.google.gwt.junit.JUnitFatalLaunchException: The test class
'com.mycompany.myappname.MyAppnameTest' was not found in module
'com.mycompany.myappname.Myappname'; no compilation unit for that type
was seen
at com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule
(JUnitShell.java:390)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:626)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:346)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
219)
at junit.framework.TestCase.runBare(TestCase.java:130)
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:120)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
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)

On Oct 6, 6:29 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 6 oct, 08:55, kito <juri.strumpfloh...@gmail.com> wrote:
> [...]
>
> >   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/'???
>
> It looks for what you tell it to !!!
>
> getModuleName should return "com.mycompany.myappname.Myappname"
--~--~---------~--~----~------------~-------~--~----~
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