Package io.quarkus.test.junit.main
Annotation Interface QuarkusMainIntegrationTest
@Target(TYPE)
@ExtendWith(QuarkusMainIntegrationTestExtension.class)
@Retention(RUNTIME)
public @interface QuarkusMainIntegrationTest
Annotation that indicates that this test should be run on the result of the Quarkus build.
That means that if a jar was created, that jar is launched using
java -jar ...
(and thus runs in a separate JVM than the test).
If instead a native image was created, the that image is launched.
Finally, if a container image was created during the build, then a new container is created and run.
The standard usage pattern is expected to be a base test class that runs the
tests using the JVM version of Quarkus, with a subclass that extends the base
test and is annotated with this annotation to perform the same checks against
the native image.
Injection of beans into a test class using @Inject
is not supported
in QuarkusMainIntegrationTest
Methods inside the test class must be annotated with Launch
or have a
QuarkusMainLauncher
parameter to be able to start the application manually.