springtestdbunit / spring-test-dbunit

Integration between the Spring testing framework and DBUnit
http://springtestdbunit.github.com/spring-test-dbunit/
Apache License 2.0
475 stars 238 forks source link

Annotations ignored on superclass #103

Open gionn opened 8 years ago

gionn commented 8 years ago

Hi,

I was trying out the new 1.3.0 version, and it looks like that @DatabaseSetup and @DatabaseTearDown on a superclass gets ignored, while in 1.1.0 they are working fine.

Has something changed about annotations processing?

dsteegen commented 8 years ago

Hello,

I just upgraded my dbunit tests from 1.0.0 to 1.3.0 and I noticed the same issue as described by @gionn. The @DatabaseSetup annotations are being ignored from my abstract super class. Is this really a bug? Or is there an alternative to achieve the same? I can't stick with 1.0.0 as I also upgraded Spring to 4.3.0.RELEASE. Having to repeat the annotation on every subclass is the only workaround I have for now.

gavvvr commented 7 years ago

Having to repeat the annotation on every subclass is the only workaround I have for now.

I also did not find another workaround. It definitely must be fixed.