今天在做eclipse测试的时候出现了initializationError(org.junit.runner.manipulation.Filter)
java.lang.Exception: No tests found
在网上查了出现错误的原因:
1、单元测试方法上没有写@Test注解。
2、spring test和Junit版本的冲突。最后发现这些错误我都没有,
找了半天最后发现自己把要运行的方法public void ...写成了private void...,改过来之后直接就运行了!