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

Add support for Spring Test @BootstrapWith annotation (new in Spring 4.1) #1061

Closed
aantono opened this issue Sep 26, 2016 · 1 comment · Fixed by #1245
Closed

Add support for Spring Test @BootstrapWith annotation (new in Spring 4.1) #1061

aantono opened this issue Sep 26, 2016 · 1 comment · Fixed by #1245
Labels
⚡ enhancement Request for new functionality

Comments

@aantono
Copy link

aantono commented Sep 26, 2016

In cucumber.runtime.java.spring.SpringFactory add @BootstrapWith annotation to the supported list by enhancing the annotatedWithSupportedSpringRootTestAnnotations method to be

private boolean annotatedWithSupportedSpringRootTestAnnotations(Class<?> type) {
        return type.isAnnotationPresent(ContextConfiguration.class)
            || type.isAnnotationPresent(ContextHierarchy.class)
            || type.isAnnotationPresent(BootstrapWith.class);
}
@sebrose sebrose added ⚡ enhancement Request for new functionality Spring labels Nov 17, 2016
mpkorstanje added a commit that referenced this issue Oct 11, 2017
Fixes #1242, #1061

Spring annotations are hierarchical and can be customized. This
requires that the entire graph is scanned to determine if one of
the supported annotations is present.
mpkorstanje added a commit that referenced this issue Oct 11, 2017
Fixes #1242
Fixes #1061

Spring annotations are hierarchical and can be customized. This
requires that the entire graph is scanned to determine if one of
the supported annotations is present.
mpkorstanje added a commit that referenced this issue Oct 25, 2017
Fixes #1242
Fixes #1061

Spring annotations are hierarchical and can be customized. This
requires that the entire graph is scanned to determine if one of
the supported annotations is present.
mlvandijk pushed a commit that referenced this issue Oct 26, 2017
Fixes #1242
Fixes #1061

Spring annotations are hierarchical and can be customized. This
requires that the entire graph is scanned to determine if one of
the supported annotations is present.
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants