How to configure log4j.properties for SpringJUnit4ClassRunner?

后端 未结 7 644
深忆病人
深忆病人 2021-01-30 04:06

Suddenly this keeps happening during a JUnit test. Everything was working, I wrote some new tests and this error occured. If I revert it, it won\'t go away. Why is that?

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 04:33

    I have the log4j.properties configured properly. That's not the problem. After a while I discovered that the problem was in Eclipse IDE which had an old build in "cache" and didn't create a new one (Maven dependecy problem). I had to build the project manually and now it works.

提交回复
热议问题