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?
Hi in your examples found out that you are using
@ExtendWith(SpringExtension.class)with annotation@SpringBootTest.I thought when the class annotated with
@SpringBootTest,@ExtendWith(SpringExtension.class)is redundant, because it is already included there:Or is there some other logic in it?