How to load DBUnit test data once per case with Spring Test
问题 Spring Test helpfully rolls back any changes made to the database within a test method. This means that it is not necessary to take the time to delete/reload the test data before each test method. But if you use the @BeforeClass Junit annotation, then that forces the data loader to be static. A question that is explored here: Why must jUnit's fixtureSetup be static? If the data initialization method is static, so must the data connection methods and the data source..and on and on...forcing