Message from discussion
Cumbersome jUnit setup
MIME-Version: 1.0
Received: by 10.150.5.1 with SMTP id 1mr904519ybe.38.1254847398496; Tue, 06
Oct 2009 09:43:18 -0700 (PDT)
Date: Tue, 6 Oct 2009 09:43:18 -0700 (PDT)
In-Reply-To: <02344c80-0630-4f56-95f9-cc2448cedebb@r36g2000vbn.googlegroups.com>
X-IP: 79.31.109.102
References: <f93a5d61-2744-4cbb-a96c-66493d16c533@r31g2000vbi.googlegroups.com>
<02344c80-0630-4f56-95f9-cc2448cedebb@r36g2000vbn.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe)
Message-ID: <2d2a1b36-2082-4ea4-a8bf-0cfe5fa18815@j28g2000vbl.googlegroups.com>
Subject: Re: Cumbersome jUnit setup
From: Juri <juri.strumpfloh...@gmail.com>
To: Google Web Toolkit <google-web-toolkit@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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=A0pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 6 oct, 08:55, kito <juri.strumpfloh...@gmail.com> wrote:
> [...]
>
> > =A0 public String getModuleName() {
> > =A0 =A0 return "com.mycompany.myappname";
> > =A0 }
>
> > 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 !!!
>