user258030
user258030

Reputation: 399

How to add a spring application context to the java runtime to be used for integration tests within eclipse?

I am trying to add a test spring application context to the java runtime, so that my beans can be wired properly for my integration tests.

Upvotes: 2

Views: 592

Answers (2)

Don Roby
Don Roby

Reputation: 41127

Spring supplies some tools that can help with such testing. See Spring TestContext Framework.

Upvotes: 1

user258030
user258030

Reputation: 399

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.

Upvotes: 1

Related Questions