Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for @DatabaseSetup annotation on superclasses #138

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix for @DatabaseSetup annotation on superclasses #138

wants to merge 4 commits into from

Conversation

dsteegen
Copy link

@dsteegen dsteegen commented Feb 15, 2017

Hi,

This pull request should fix issue #103. The class DbUnitRunner will now use the overloaded findAnnotation method on the org.springframework.core.annotation.AnnotationUtils class in Spring Core that takes a Class<?> as an argument opposed to AnnotatedElement. The latter will only look for the annotation on the given class while the other methods tries to look on it's parent classes/interfaces if the annotation is not present on the given class itself.

This reintroduces the behaviour from older version of spring-test-dbunit.

@ppodgorsek
Copy link

This fix has been done in a maintained repository: https://github.com/ppodgorsek/spring-test-dbunit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants