将GWT更新为2.6.0时无法运行GwtTestCase

时间:2014-02-07 13:28:31

标签: gwt gwt-maven-plugin

将我的GWT版本更新为 2.6.0 后,我在运行旧GwtTestCase时遇到此错误:

[ERROR] The -out option is deprecated. This option will be removed in future GWT release       and will throw an error if it is still used. Please use -war option instead.
[INFO] <b>[ERROR] RunStyleHtmlUnit: Unknown browser name FF3, expected browser name: one of   [IE8, IE9, Chrome, FF17]</b>
[INFO] [ERROR] shell failed in doStartup method
[INFO] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.682 sec <<< FAILURE!
[INFO] testSerializeDeserialize(m6.sherpa.portal.widget.base.client.components.frame.GwtTestSerializer)  Time elapsed: 1.641 sec  <<< ERROR!
[INFO] com.google.gwt.junit.JUnitFatalLaunchException: Shell failed to start
[INFO]  at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:732)
[INFO]  at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:705)
[INFO]  at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
[INFO]  at junit.framework.TestCase.runBare(TestCase.java:141)
[INFO]  at junit.framework.TestResult$1.protect(TestResult.java:122)
[INFO]  at junit.framework.TestResult.runProtected(TestResult.java:142)
[INFO]  at junit.framework.TestResult.run(TestResult.java:125)
[INFO]  at junit.framework.TestCase.run(TestCase.java:129)
[INFO]  at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun(MavenTestRunner.java:105)
[INFO]  at junit.textui.TestRunner.start(TestRunner.java:183)
[INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:63)

任何想法?

2 个答案:

答案 0 :(得分:1)

修复它的最佳方法是将gwt-maven-plugin更新为2.6.0。

在以前的版本(最高版本和包括2.5.1版本)中,<htmlunit>配置属性默认为FF3,但该值在GWT 2.6.0中不再有效。 gwt-maven-plugin 2.6.0现在将属性默认为FF17

答案 1 :(得分:0)

看起来GWT 2.6.0不再支持FireFox v3。 FF3已被FF17取代。