spring-test-dbunit icon indicating copy to clipboard operation
spring-test-dbunit copied to clipboard

@DatabaseSetup not working with JUnit 5's @Nested

Open nikola-zivkov opened this issue 6 years ago • 2 comments

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

nikola-zivkov avatar Aug 30 '19 08:08 nikola-zivkov

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.

ppodgorsek avatar Dec 08 '19 13:12 ppodgorsek

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

alexeil avatar Jul 20 '20 10:07 alexeil