title: How can I use the Parameterized JUnit test runner with a field that's injected using Spring?
body: <p>I'm using Spring to inject the path to a directory into my unit tests. Inside this directory are a number of files that should be used to generate test data for parameterized test cases using the <a href="http://junit.sourceforge.net/javadoc/org/junit/runners/Parameterized.html" rel="noreferrer">Parameterized</a> test runner. Unfortunately, the test runner requires that the method that provides the parameters be static. This doesn't work for my situation because the directory can only be injected into a non-static field. Any ideas how I can get around this?</p>