Open andrei-l opened 8 years ago
More generally, it would be good for the datasets to be imported in the order of the class hierarchy. For example:
@DatabaseSetup("classpath:/generic-dataset.xml")
public abstract class GenericParentTest {
}
@DatabaseSetup("classpath:/extended-dataset.xml")
public class ExtendedTest extends GenericParentTest {
@Test
public void testStuff() throws Exception {
...
}
}
In this example, it would be good to ensure generic-dataset.xml
is loaded before extended-dataset.xml
.
When DatabaseSetup annotation is specified on the parent class it is not longer applicable for the child class, meaning that DB setup is not being performed.
E.g.
This worked fine in v. 1.2.1.
Attached are completely two same examples with the only difference in spring-test-dbunit version. One works fine, another does not.
spring-test-dbunit-issue-works-v1.2.1.zip
spring-test-dbunit-issue-does-not-work-v1.3.0.zip