Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring 4 - Found interface org.springframework.test.context.TestContext, but class was expected

Tags:

java

spring

maven

I started to get "Found interface org.springframework.test.context.TestContext, but class was expected" exception after spring core migration from 3.2 to 4. I'm using mvn clean test and java 7 as maven compiler version.

any ideas what to do with that?

like image 417
hi_my_name_is Avatar asked Jan 09 '14 09:01

hi_my_name_is


1 Answers

Fixed.

It was problem with spring test db unit library. Some description of problem here https://github.com/springtestdbunit/spring-test-dbunit/issues/46 - current version visible in maven repos 1.0.1 is not working with spring 4. So I needed to clone repo and build version 1.1.0-SNAPSHOT.

like image 114
hi_my_name_is Avatar answered Nov 12 '22 05:11

hi_my_name_is