在 Eclipse 首选项中
Windows > Preferences > Java > Junit
“Add '-ea' to VM args ....”复选框选项实际上对新的 junit 启动配置有什么影响?
它使 JVM 能够兑现断言