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@Injectis not supported inQuarkusMainTest. Methods inside the test class must be annotated withLaunchor have aQuarkusMainLauncherparameter to be able to start the application manually. Note that this can be used in conjunction with otherQuarkusTestbased tests.QuarkusMainTestis used to check a complete execution, whileQuarkusTestcan be used to inject components and perform more fine-grained checks.