which resource will be load when run test case in idea?

Hello:
     I have two spring config files, both named "spring-beans.xml". And they are separately located in /main/resources and /test/resources.
     And in my BaseTestCase class, I let Spring load spring-beans.xml file, and I expect that when i run test case in idea, file in /test/resources will be load.
But the result is opposite.Why? Can I let idea load the file from /test/resource.

Please sign in to leave a comment.