Finally, I solved my problem with this config location:
"classpath*:**/applicationContext-test*.xml"
Regards
Alexandre
Alexandre Touret wrote:
Hello,
I programmed some testcases which run perfectly under M1.x . I moved
them to M2 recently. Unfortunately, I have some troubles with the
classloading of surefire.
My test configuration files are stored under the directory
src/test/resources. They are named as applicationContext-**-test.xml
When I start mvn test, Spring doesn t load the right directory:
[DEBUG] PathMatchingResourcePatternResolver - Looking for matching
resources in
directory tree
[d:\java\src\javacommons\ccip-fk2\commons-lang\target\classes]
[DEBUG] CollectionFactory - Creating [java.util.LinkedHashSet]
[DEBUG] PathMatchingResourcePatternResolver - Searching directory
[d:\java\src\j
avacommons\ccip-fk2\commons-lang\target\classes] for files matching
pattern [d:/
java/src/javacommons/ccip-fk2/commons-lang/target/classes/**/applicationContext-
test*.xml]
Normally, Spring should try to look for test configuration files under
test-classes. I have already verified that all the files are present
in this directory.
I also tried to fork the process and to do the childDelegation. I have
the same result
What can I do ?
Thanks for your help
Regards,
Alexandre Touret
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]