Hello! I'm moving my unit-tests from JUnit 3.8 to JUnit 4.4 and switching them to use new annotations from Spring 2.5.
As result everything works quite fine under Eclipse (tests are run, all dependencies are injected, tests are performed, changed rolled-back (mostly))
But then I tried to run tests under maven (used as build-system for our project) I met the problem - no any @Autowired dependency was injected (so, I've got many NPE exception then tried to use this dependencies).
I searched forum and internet and found thread here: http://forum.springframework.org/showthread.php?t=47287
but there author had opisite problem: everything worked fine under Maven and does not worked under Eclipse.
I alos looked into http://blog.springsource.com/main/20...#comment-75705
Solution proposed there (switch from using asm 1.5.3 to 2.2.3) does not helped in my case.
Does anybody has any idea why it may happens?
My environment: Spring 2.5.1 (cannot switch to 2.5.2 due to some incompatibilities with current version CXF), Java 1.6 (version does not make sense), Maven 2.0.8
Major question - why it is worked under Eclipse - but does not work under maven?