阅读背景:

JUnit:在被测试的类中启用断言

来源:互联网 

I've been bit a few times by Java assert statements that didn't fail in the JUnit test suite because assertions weren't enabled in JUnit's JVM instance. To be clear, these are "black box" assertions inside implementations (checking invariants, etc) not the assertions defined by the JUnit tests themselves. Of course, I'd like to catch any such assertion failures in the test suite. statem




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: