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
. Methods inside the test class must be annotated withLaunch
or have aQuarkusMainLauncher
parameter to be able to start the application manually. 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.