wood burning stoves 2.0*
The moose likes Spring and the fly likes Exception when trying to run a test with Spring runner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Exception when trying to run a test with Spring runner" Watch "Exception when trying to run a test with Spring runner" New topic
Author

Exception when trying to run a test with Spring runner

Soheil Tayari
Greenhorn

Joined: Apr 04, 2008
Posts: 29
I'm using Spring 3.0.5 and I want to inject some properties using spring into my test classes. I'm using SpringJUnit4ClassRunner to run the tests and perform the injection. But I get an exception when I try to run the test. It seems that the exception has already been reported (here) but has been closed and it's not helping me much. Here's the stack trace:


Any idea?
Shashank Ag
Ranch Hand

Joined: Dec 22, 2009
Posts: 88

Looking at stack trace it seems as if problem is due to some old version spring jars in your classpath.


SCJP 91%, SCWCD 97%
Soheil Tayari
Greenhorn

Joined: Apr 04, 2008
Posts: 29
Shashank Ag wrote:Looking at stack trace it seems as if problem is due to some old version spring jars in your classpath.

All my jars are version 3.0.5. I got no older jar.
 
jQuery in Action, 2nd edition
 
subject: Exception when trying to run a test with Spring runner
 
Similar Threads
JUnit and Spring
Spring JUnit error
Issue in hibernate version
hibernate/Code Coverage(Emma plugin)
Facing problem in running JUnit test cases on code with Spring Annotations