I am tryin开发者_StackOverflow社区g to add a test spring application context to the java runtime, so that my beans can be wired properly for my integration tests.
Never mind, I solved it. I just had to add the folder containing my test application context as a source folder, and VOILA! I am pretty sure there are better ways to do it.
Spring supplies some tools that can help with such testing. See Spring TestContext Framework.
精彩评论