2014-04-23 49 views
0

LOVE RQB !!,我想獲取源代碼版本。我已經克隆與混帳回購協議,我相信我已經下載並擁有所有的位installedbut當我運行「命令mvn乾淨安裝」它通過某種陰謀,最後失敗與以下試圖從源代碼構建RQB從testJsList得到斷言錯誤

Failed tests: 
[INFO] testJsList(com.redspr.redquerybuilder.js.client.GwtTestBasics) 

這裏是從堆輸出:

[INFO] Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.325 sec <<< FAILURE! 
[INFO] testJsList(com.redspr.redquerybuilder.js.client.GwtTestBasics) Time elapsed: 0.047 sec <<< FAILURE! 
[INFO] junit.framework.AssertionFailedError: Remote test failed at 127.0.0.1/Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19 
[INFO] expected: <22>, actual: <14> 
[INFO] at junit.framework.Assert.fail(Assert.java:193) 
[INFO] at junit.framework.Assert.failNotEquals(Assert.java:198) 
[INFO] at junit.framework.Assert.assertEquals(Assert.java:94) 
[INFO] at junit.framework.Assert.assertEquals(Assert.java:43) 
[INFO] at com.redspr.redquerybuilder.js.client.GwtTestBasics.testJsList(GwtTestBasics.java:192) 
[INFO] at com.redspr.redquerybuilder.js.client.__GwtTestBasics_unitTestImpl.doRunTest(__GwtTestBasics_unitTestImpl.java:7) 
[INFO] at junit.framework.TestCase.runTest(TestCase.java:62) 
[INFO] at com.google.gwt.junit.client.GWTTestCase.runBare(GWTTestCase.java:188) 
[INFO] at com.google.gwt.junit.client.GWTTestCase.__doRunTest(GWTTestCase.java:129) 
[INFO] at com.google.gwt.junit.client.impl.GWTRunner.runTest(GWTRunner.java:390) 
[INFO] at com.google.gwt.junit.client.impl.GWTRunner.doRunTest(GWTRunner.java:318) 
[INFO] at com.google.gwt.junit.client.impl.GWTRunner.access$9(GWTRunner.java:312) 
[INFO] at com.google.gwt.junit.client.impl.GWTRunner$TestBlockListener.onSuccess(GWTRunner.java:107) 
[INFO] at com.google.gwt.junit.client.impl.GWTRunner$TestBlockListener.onSuccess(GWTRunner.java:1) 
[INFO] at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232) 
[INFO] at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:258) 
[INFO] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412) 
[INFO] at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) 
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[INFO] at java.lang.reflect.Method.invoke(Method.java:606) 
[INFO] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
[INFO] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
[INFO] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) 
[INFO] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338) 
[INFO] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219) 
[INFO] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 
[INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571) 
[INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279) 
[INFO] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) 
[INFO] at com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
[INFO] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:249) 
[INFO] at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) 
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[INFO] at java.lang.reflect.Method.invoke(Method.java:606) 
[INFO] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
[INFO] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
[INFO] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) 
[INFO] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) 
[INFO] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) 
[INFO] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) 
[INFO] at java.lang.Thread.run(Thread.java:744) 
+0

請你可以試試:mvn clean install -DskipTests = true,看看是否構建你的工作代碼?可能只是奇怪的測試問題。無論哪種方式,請你可以在github上提出一個關於你的環境細節的問題? – salk31

+0

看起來像這個作品的構建。 TYVM。我會在github上打開一個問題。作爲一個側面說明,pom.xml文件不能用於gwt 2.6.0(你必須使用2.5.1),因爲在pom.xml的配置部分中缺少「runTarget」的問題,工作正常在2.5.1中。 – Severun

+0

很高興工作。請你能爲GWT 2.6.0提出一個問題,也許是一個拉請求?我有點陷入試圖添加驗證和/或自定義序列化的vistor模式。 – salk31

回答

1

這在RedQueryBuilder 0.6.0單元測試中的錯誤是由於單元測試設定值在UTC的時間然後測試天,小時,分鐘是在本地時間是相同的。 ..只有在英國和里斯本是這樣的:(修復應該在0.7.0。感謝您找到並提高bug。

+0

Yup在最新版本tyvm中得到了修復。 – Severun