Junit4所需jar包

  在eclipse中新建一个Junit类,运行时出现java.lang.NoClassdeffounderror:org/apache/commons/logging/LogFactory错误,原来是缺少commons-logging-1.0.4.jar这个jar包,添加该jar包后能正常运行。

           在每个公共方法前增加@Test注解,如

@Test

public void test001() {

}

posted @ 2016-04-06 09:30  疯子110  阅读(1678)  评论(0编辑  收藏  举报