the JAR of this class file belongs to container 'Junit 4' which does not allow modifications to sour
今天打算用log4j 和 junit4来测试单元,之前一直可以用的今天突然不能用了,跳出错误如下:
经过一番折腾之后,最后发现错误的原因所在:
@Test
public static void test() {
不知道哪根筋不对劲在测试类前面加了个static,把静态类标记去了就可以了。