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
On a quarkus cli app, when tests contains 2 or more nested classes and QuarkusMainLauncher#lauch() is called in a nested classe, tests throws an Error:
java.util.ServiceConfigurationError: io.smallrye.config.SmallRyeConfigBuilderCustomizer: io.quarkus.deployment.configuration.BuildTimeConfigBuilderCustomizer not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:757)
at io.quarkus.deployment.configuration.BuildTimeConfigurationReader.initConfiguration(BuildTimeConfigurationReader.java:412)
at io.quarkus.deployment.ExtensionLoader.loadStepsFrom(ExtensionLoader.java:141)
at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:107)
at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:350)
at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:271)
at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:61)
at io.quarkus.test.junit.QuarkusMainTestExtension.doJavaStart(QuarkusMainTestExtension.java:183)
at io.quarkus.test.junit.QuarkusMainTestExtension.doLaunch(QuarkusMainTestExtension.java:95)
at io.quarkus.test.junit.QuarkusMainTestExtension$2.launch(QuarkusMainTestExtension.java:263)
at org.acme.GreetingCommandTest$Nested2.test3(GreetingCommandTest.java:35)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at io.quarkus.test.junit.QuarkusMainTestExtension.interceptTestMethod(QuarkusMainTestExtension.java:303)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
The error occurs when there is :
2 Nested classes or more
launcher.launch() called in a nested class
There is no error if :
there is only one nested class,
or if launcher.launch() is not called in an nested class.
benDeMtp
changed the title
Error occurred on tests with @Nested classes and QuarkusMainLauncher
Error occurs on tests with @Nested classes and QuarkusMainLauncher
Feb 7, 2025
Describe the bug
On a quarkus cli app, when tests contains 2 or more nested classes and QuarkusMainLauncher#lauch() is called in a nested classe, tests throws an Error:
The error occurs when there is :
There is no error if :
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
https://github.com/benDeMtp/nested-bug-reproducer
Output of
uname -a
orver
Darwin Kernel Version 24.2.0
Output of
java -version
openjdk version "21.0.5" 2024-10-15 LTS
Quarkus version or git rev
3.18.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9
Additional information
No response
The text was updated successfully, but these errors were encountered: