Package io.quarkus.test.junit.main
Annotation Type QuarkusMainTest
-
@Target(TYPE) @ExtendWith(QuarkusMainTestExtension.class) @Retention(RUNTIME) public @interface QuarkusMainTest
Annotation that indicates that this test should run the Quarkus main method inside the current JVM. A new in-memory quarkus application will be generated, and will be run to completion. Injection of beans into a test class using@Inject
is not supported inQuarkusMainTest
. Note that this can be used in conjunction with otherQuarkusTest
based tests.QuarkusMainTest
is used to check a complete execution, whileQuarkusTest
can be used to inject components and perform more fine-grained checks.