Skip to content

Regarding @ExtendWith(SpringExtension.class) #34

@asadganiev

Description

@asadganiev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions