Annotation Interface FlywayTestExtension
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@ExtendWith(org.springframework.test.context.junit.jupiter.SpringExtension.class) @ExtendWith(FlywayTestExtension.class)
public @interface FlywayTestExtension
The annotation FlywayTestExtension is a shortcut for JUnit5 usage.
The annotation only work together with <a href="https://spring.io/"}>Spring Framework and need a
implementation of
SpringExtension.
It support all features that are described with FlywayTest and
FlywayTests.
Usage:
@FlywayTestExtension.class
class TestClass {
}
and will replace
@ExtendWith(org.springframework.test.context.junit.jupiter.SpringExtension.class)
@ExtendWith(org.flywaydb.test.junit5.FlywayTestExtension.class)
class TestClass {
}
- Since:
- 5.2.2
- Author:
- florian