The usual problem is that your test sources are not in the classpath... the first bit of the stack trace suggests that I think.
Cheers Sam On Jan 27, 9:41 am, tanteanni <[email protected]> wrote: > i just tried my first GWTTestCase but it fails. My setup is Eclipse/Maven > (not the happiest couple on the planet) - the pom was initially generated > by gwt-tool ("webappcreator"?). I use MVP,gin, guice (testing views is not > #1 priority but i want it to work). > Normal Unit-Tests work just fine. > But with GWTTestCase i got different kinds of trouble: > if i try it with Eclipse' "run as GWT Test" i got: > > com.google.gwt.junit.JUnitFatalLaunchException: The test class > '....client.view.DynamicLayoutViewImplTest' was not found in module > '...integration'; no compilation unit for that type was seen > at > com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.ja > va: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:653) > at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:8 3) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRe > ference.java:49) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: > 38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR > unner.java:467) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR > unner.java:683) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner > .java:390) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunne > r.java:197) > > (The Test is in same package as the view, the module used inherits the > "normal" module but it includes all permutations) > > If i run "mvn test" i got a much bigger exception: for some reasen the app > is deployed on jetty together with all server side stuff and i get an > guice-error!? mvn gwt:test does absolutly nothing. The first question is: > is this a source-code problem or a configuration problem or both? Here is > the source: > > public class DynamicLayoutViewImplTestGWT extends GWTTestCase { > > @Override > public String getModuleName() { > return "...Integration"; > } > > private DynamicLayoutViewImpl testObject; > > @Before > public final void init() { > AdbResources resources = GWT.create(AdbResources.class); > testObject = new DynamicLayoutViewImpl(Unit.EM, resources); > } > > @Test > public final void testIt() { > System.out.println("here"); > } > > } > > as you see i just tried to get an instance of my testobject. > > thx in advance > > (i also tried gwt-test-utils is also failed) -- 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.
