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
Following the quarkiverse documentation [https://docs.quarkiverse.io/quarkus-cucumber/dev/index.html]
It seems simple to integrate quarkus and Cucumber since you only should add the io.quarkiverse.cucumber:quarkus-cucumber extension and your test class should extend from CucumberQuarkusTest and add the main method wich boostrap Cucumber and discover any .feature.
But if I start the suit of tests running from my Test class I'm getting the error: getTests() ✘ java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
If I boostrap directly the .feature I can execute the tests.
The complete error:
`╷
└─ JUnit Jupiter ✔
└─ CucumberResourceTest ✔
└─ getTests() ✘ java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
Failures (1):
JUnit Jupiter:CucumberResourceTest:getTests()
MethodSource [className = 'io.biapower.services.inspectorclouseau.CucumberResourceTest', methodName = 'getTests', methodParameterTypes = '']
=> java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:632)
io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:703)
org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:73)
[...]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:330)
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:252)
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:60)
io.quarkus.test.junit.QuarkusTestExtension.doJavaStart(QuarkusTestExtension.java:225)
io.quarkus.test.junit.QuarkusTestExtension.ensureStarted(QuarkusTestExtension.java:609)
[...]
Caused by: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.smallrye.config.validator.BeanValidationConfigValidator.validatePropertyValue(BeanValidationConfigValidator.java:169)
io.smallrye.config.validator.BeanValidationConfigValidator.validateProperty(BeanValidationConfigValidator.java:75)
io.smallrye.config.validator.BeanValidationConfigValidator.validateProperty(BeanValidationConfigValidator.java:70)
io.smallrye.config.validator.BeanValidationConfigValidator.validateMappingInterface(BeanValidationConfigValidator.java:57)
io.smallrye.config.validator.BeanValidationConfigValidator.validateMapping(BeanValidationConfigValidator.java:39)
[...]
Test run finished after 867 ms
[ 3 containers found ]
[ 0 containers skipped ]
[ 3 containers started ]
[ 0 containers aborted ]
[ 2 containers successful ]
[ 1 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Following the quarkiverse documentation [https://docs.quarkiverse.io/quarkus-cucumber/dev/index.html]
It seems simple to integrate quarkus and Cucumber since you only should add the
io.quarkiverse.cucumber:quarkus-cucumber
extension and your test class should extend from CucumberQuarkusTest and add the main method wich boostrap Cucumber and discover any .feature.But if I start the suit of tests running from my Test class I'm getting the error:
getTests() ✘ java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
If I boostrap directly the .feature I can execute the tests.
The complete error:
`╷
└─ JUnit Jupiter ✔
└─ CucumberResourceTest ✔
└─ getTests() ✘ java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
Failures (1):
JUnit Jupiter:CucumberResourceTest:getTests()
MethodSource [className = 'io.biapower.services.inspectorclouseau.CucumberResourceTest', methodName = 'getTests', methodParameterTypes = '']
=> java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:632)
io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:703)
org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:73)
[...]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:330)
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:252)
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:60)
io.quarkus.test.junit.QuarkusTestExtension.doJavaStart(QuarkusTestExtension.java:225)
io.quarkus.test.junit.QuarkusTestExtension.ensureStarted(QuarkusTestExtension.java:609)
[...]
Caused by: java.lang.NullPointerException: Cannot invoke "javax.validation.Validator.forExecutables()" because the return value of "io.smallrye.config.validator.BeanValidationConfigValidator.getValidator()" is null
io.smallrye.config.validator.BeanValidationConfigValidator.validatePropertyValue(BeanValidationConfigValidator.java:169)
io.smallrye.config.validator.BeanValidationConfigValidator.validateProperty(BeanValidationConfigValidator.java:75)
io.smallrye.config.validator.BeanValidationConfigValidator.validateProperty(BeanValidationConfigValidator.java:70)
io.smallrye.config.validator.BeanValidationConfigValidator.validateMappingInterface(BeanValidationConfigValidator.java:57)
io.smallrye.config.validator.BeanValidationConfigValidator.validateMapping(BeanValidationConfigValidator.java:39)
[...]
Test run finished after 867 ms
[ 3 containers found ]
[ 0 containers skipped ]
[ 3 containers started ]
[ 0 containers aborted ]
[ 2 containers successful ]
[ 1 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
Process finished with exit code 1`
Beta Was this translation helpful? Give feedback.
All reactions