reset password
Author Message
kevossus
Posts: 6
Posted 10:40 Oct 21, 2013 |

I am attempting to test my UserDaoTests.java file with TestNG and receive a "FAILED CONFIGURATION: @BeforeClass springTestContextPrepareTestInstance" error. The applicationContext.xml file is being picked up and read-in correctly so it cannot be that its a configuration error. The error statement I am getting, "@BeforeClass springTestContextPrepareTestInstance", seems to be coming from the super class, AbstractTransactionalTestNGSpringContextTests. 

Any idea how we can avoid this error? Maybe there is an include or exclude not mentioned in the examples? Has anyone else experienced this error?

Last edited by kevossus at 10:41 Oct 21, 2013.
cysun
Posts: 2935
Posted 10:48 Oct 21, 2013 |

Make sure all your Spring dependencies are of version 3.1.4-RELEASE.

kevossus
Posts: 6
Posted 11:10 Oct 23, 2013 |

I wanted to point out for anybody else who runs into this problem, the Professor's comment fixed the issue. All Spring dependencies should be version 3.1.4-RELEASE. 

Its in the Spring and Hibernate tutorial and I missed it originally.