2011-08-06 77 views
0

所以我想寫我的第一個gwt測試。我得到了這部分想通了,我需要添加GWT-dev.jar到Maven POM文件,但現在當我跑我的測試中,我得到這個錯誤:GWT測試錯誤

testSimple(com.karq.tvkava.client.TelekanalServiceImplTest) Time elapsed: 3.809 sec <<< ERROR! 
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 
    at com.google.gwt.dev.cfg.ModuleDef.checkForSeedTypes(ModuleDef.java:518) 
    at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:327) 
    at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1342) 
    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: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.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) 
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) 
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) 
    at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) 
    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) 

這是我的測試文件

public class TelekanalServiceImplTest extends GWTTestCase { 

    @Override 
    public String getModuleName() { 
     return "com.karq.tvkava.tvkavaJUnit"; 
    } 

    public void testSimple(){ 
     boolean isSaved = true; 
     assertTrue(isSaved); 
    } 
} 
+0

您是否注意到「查看以前的日誌條目」部分? – skaffman

回答