Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring JUnit error

 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a JUnit test class which I run using Spring. Following is what I have configured to my JUnit type



When I try to run my test method, I get the following error:



What the heck is app-config.xml? I'm not referencing it anywhere. Suggestions on what might be wrong?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any <import> tags in any of those configuration files? And maybe those <import> config files, have <import> tags. But somewhere you are looking up that config file.

Or do you have any Java COnfiguration classes with @Configuration that are @ImportResource other config files?

Good Luck.

Mark
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes, I figured out what the problem was. My JUnit test class extends from another super class and in that super class, there was a reference to the aop-config.xml. I do not know who has added it. Guess it could be due to eclipse auto fill feature or something else. I removed it and it all started working again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic