ppodgorsek / spring-test-dbunit

Integration between the Spring testing framework and DBUnit
Apache License 2.0
41 stars 6 forks source link

@DatabaseSetup not working with JUnit 5's @Nested #145

Open nikola-zivkov opened 4 years ago

nikola-zivkov commented 4 years ago

It seems that datasets are not loaded when @DatabaseSetup is placed on either a nested class or a method within a nested class.

ppodgorsek commented 4 years ago

The following test class has been created to reproduce this issue on the dedicated branch: com.github.springtestdbunit.setup.NestedDatabaseSetupTest

From a first analysis, it seems Spring's @SpringJUnitConfig does not support nested classes correctly.

alexeil commented 4 years ago

Still not working with Spring boot 2.3.1 and spring-test-dbunit 1.3.0. is there any update on this issue ?