My english is poor. I hope the problem is clearly and properly presented.
I use idea 10.5.1, when i run a test case, it throw exceptions:
2011-11-17 17:01:13,724  INFO adboard.AdboardBOTest - ApplicationContext has not been configured for test [com.taobao.ad.zuanshi.biz.bo.adboard.AdboardBOTest]: dependency injection will NOT be performed.
2011-11-17 17:01:13,724  INFO adboard.AdboardBOTest - No transaction manager set: test will NOT run within a transaction
The spring contextConfiguration files are not loaded.
In the BaseTestCase, i use annotation @ContextConfiguration to load contextConfiguration files.
but, when i delete a import statement "import static org.mockito.Matchers.any;" Everything is OK!!!!!!
then i occuer the same problem when i add some other import...
Last, I find when the test case is ok, in consle idea print"com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 XXX"; when test case isn't ok, in consle idea print"com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 XXX"; so i doubt idea can't distinguish a test case is junit4 in some case. I can't find the place to set idea alway use junit4.
I need help!!!!