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系列已经不再更新了.

posted @ 2011-01-20 01:21  陈文龙  阅读(776)  评论(0)    收藏  举报