zoukankan      html  css  js  c++  java
  • Spring2.5.X与Junit4.5配搭问题

    在测试service类时报错.

    错误为

    org/junit/Assume$AssumptionViolatedException;

    nested exception is java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException

    百思不得其解,然后就翻Google,后来Springjira中翻到,原来Spring 2.5 branch中是使用得junit 4.4.同时Spring 2.5 branch已经处于静止状态,不会在更新了.

     

    控制台会报这个错误,java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException.但是这个错误明显不是我们想看到的.没有看junit4.4~junit4.6change log,不清楚这三个版本间升级了什么内容,不过对我们来说,降级使用Junit4.4是最好的选择了,毕竟spring2.5系列已经不再更新了.

  • 相关阅读:
    css
    js -【 数组】判断一个变量是数组类型的几种方法
    【消灭代办】第2周
    【本周面试题】第2周
    【本周面试题】第1周
    【消灭代办】第1周
    echarts
    css
    js
    JS方法
  • 原文地址:https://www.cnblogs.com/chenwenlong/p/1939765.html
Copyright © 2011-2022 走看看