【发布时间】:2010-09-22 09:42:03
【问题描述】:
JUnit 框架包含 2 个Assert 类(显然在不同的包中),每个类的方法看起来都非常相似。谁能解释这是为什么?
我指的类是:junit.framework.Assert 和 org.junit.Assert。
【问题讨论】:
-
在 Intellij IDEA 中,您可以从
Editor->General->Auto Import->Exclude from Import and Completion的静态导入下拉列表中排除junit.framework.*。
标签: java unit-testing junit junit4 assert