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() {

}

原文地址:https://www.cnblogs.com/telwanggs/p/5357929.html