我很不稳定与单元测试,但我有我的代码的一部分,我真的需要确定其一致性。我试图使用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