By experiment, I find that SpringJunit4ClassRunner
treats the context and its beans as 'class scope' in the JUnit sense of scope. It inititializes my beans once for the entire set of tests in the class.
Is there any way to use this mechanism and get these things to be 'test scope'? In short, I wish that the context was being loaded as @Before
instead of @BeforeClass
.