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

Regarding @ExtendWith(SpringExtension.class) #34

Open
asadganiev opened this issue May 19, 2021 · 0 comments
Open

Regarding @ExtendWith(SpringExtension.class) #34

asadganiev opened this issue May 19, 2021 · 0 comments

Comments

@asadganiev
Copy link

asadganiev commented May 19, 2021

Hi in your examples found out that you are using @ExtendWith(SpringExtension.class) with annotation @SpringBootTest.

@ExtendWith(TraceSqlExtension.class)
@ExtendWith(SpringExtension.class)
@SpringBootTest
class TraceSqlExtensionTest {
...

I thought when the class annotated with @SpringBootTest, @ExtendWith(SpringExtension.class) is redundant, because it is already included there:

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@BootstrapWith(SpringBootTestContextBootstrapper.class)
@ExtendWith({SpringExtension.class})
public @interface SpringBootTest {
...

Or is there some other logic in it?

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

No branches or pull requests

1 participant