Goal: Find a way in Eclipse to execute all the tests in a JUnit class which reloads the Spring context before each test, instead of just once.
Scenario: I inherited
You can use @DirtiesContext in your test class:
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = { MyConf.class }) @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD) public void MyTestClass {
This will reload the context after each test method.