Trying to run junit test on service level of Spring WebFlow Project. Assume$AssumptionViolatedException

前端 未结 4 1754
再見小時候
再見小時候 2020-12-18 11:56

I am trying to run my first test with junit on a Spring Web Flow Project from within Eclipse and also from the console with mvn test and but give me the same error.

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-18 12:45

    I have to keep Spring v2.5, downgrading to JUnit 4.4 resolves the problem.

    Moreover, you'll see original cause hidden by Assume$AssumptionViolatedException ;)

    FYI, Moving to latest spring-test 2.5.6 won't change anything.

    Linked SO : Junit4 + Spring 2.5 : Asserts throw "NoClassDefFoundError"

提交回复
热议问题