문제

my junit test are passing when i am running

mvn test

but

mvn emma:emma


it has errors. How can i find out which classes are executed? The errors that i have are related to spring

java.lang.NoSuchMethodError: org.springframework.beans.BeanUtils.instantiateClass(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Object;
    at org.springframework.test.context.ContextLoaderUtils.resolveContextLoader(ContextLoaderUtils.java:87)

since the same config is working fine, i think that there are some problems with the classpath when i run emma.
Any advice is apreciated,
10x

도움이 되었습니까?

해결책

Your spring-test version disagrees with your spring-beans version. Use mvn dependency:tree to find what's pulling in the relevant versions and use explicit top-level dependencies or dependency exclusions to manage them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top