Testing with Spring and Maven: applicationContext

前端 未结 9 1552
-上瘾入骨i
-上瘾入骨i 2020-12-13 04:04

Seems that question old as world, but I still can\'t find out the solution..

I\'m trying to run simple test:

@RunWith(SpringJUnit4ClassRunner.class)
         


        
9条回答
  •  既然无缘
    2020-12-13 04:37

    For some reason, I had the same issue and it worked when I ran maven test with the JDK6 instead of JDK8 (in my case this is a legacy application)

    If it helps anyone.

提交回复
热议问题