我很不穩定與單元測試,但我有我的代碼的一部分,我真的需要確定其一致性。我試圖使用JSON將數據從對象傳輸到外部文件,所以我想確保何時從外部文件中提取數據,它將是相同的。運行時錯誤,當JUnit測試
我正在使用單元測試來斷言這種平等,但我遇到了一個問題,我不知道如何處理。這是一個運行時錯誤,這是控制檯讀取的內容。
A fatal error has been detected by the Java Runtime Environment:
Internal Error (classFileParser.cpp:3494), pid=5032, tid=7048
Error: ShouldNotReachHere()
JRE version: 6.0_25-b06
Java VM: Java HotSpot(TM) 64-Bit Server VM (20.0-b11 mixed mode windows-amd64 compressed oops)
An error report file with more information is saved as:
L:\fliphouseWorkspace\Luas\hs_err_pid5032.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
任何幫助,將不勝感激謝謝。
重複:[致命錯誤由Java運行時環境](http://stackoverflow.com/questions/2543106/fatal-error-by-java-runtime-environment) – 2011-06-03 12:35:08
@Tomasz Blachowicz是正確的。檢查如果android。大部分的Android都出現這樣的錯誤 – 2011-06-03 14:41:33
類似於[在eclipse中不能運行JUnit 4測試用例](http://stackoverflow.com/questions/2172152/cant-run-junit-4-test-case-in-eclipse ) – idbrii 2011-07-07 01:05:58