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.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: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:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
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)
(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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/v48hD57nv6MJ.
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.
No comments:
Post a Comment