You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a normal Quarkus test or integration test, one can inject state into the test class using io.quarkus.test.common.QuarkusTestResourceLifecycleManager#inject. This allows one to spin up resources and inject their descriptors into the test
For QuarkusMainTest and QuarkusMainIntegrationTest this functionality seems to be missing, and the injector isn't even called.
Expected behavior
The QuarkusTestResourceLifecycleManager is allowed to inject state into the test class.
Actual behavior
The injector is not called and no injection occurs
How to Reproduce?
Create a QuarkusMainTest that relies in injection from its test profile. Observe that none occurs.
Output of uname -a or ver
macOS Monterey
Output of java -version
OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.8.1.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 7.4.2
Additional information
Occurs for QuarkusMainTest and QuarkusMainIntegrationTest both when running against a jar and native.
The text was updated successfully, but these errors were encountered:
Describe the bug
For a normal Quarkus test or integration test, one can inject state into the test class using
io.quarkus.test.common.QuarkusTestResourceLifecycleManager#inject
. This allows one to spin up resources and inject their descriptors into the testFor
QuarkusMainTest
andQuarkusMainIntegrationTest
this functionality seems to be missing, and the injector isn't even called.Expected behavior
The
QuarkusTestResourceLifecycleManager
is allowed to inject state into the test class.Actual behavior
The injector is not called and no injection occurs
How to Reproduce?
Create a
QuarkusMainTest
that relies in injection from its test profile. Observe that none occurs.Output of
uname -a
orver
macOS Monterey
Output of
java -version
OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.8.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.4.2
Additional information
Occurs for
QuarkusMainTest
andQuarkusMainIntegrationTest
both when running against a jar and native.The text was updated successfully, but these errors were encountered: