Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quarkus 2.0.0-Alpha1] Continuous Testing + junitpioneer -> IssueExtensionExecutionListener not a subtype #16762

Closed
franden opened this issue Apr 23, 2021 · 1 comment · Fixed by #16791
Labels
area/testing kind/bug Something isn't working
Milestone

Comments

@franden
Copy link

franden commented Apr 23, 2021

I am very appreciate about Quarkus Continuous Testing feature. Great improvement!

Today I tested this feature with Quarkus 2.0.0-Alpha1 with my code which is using in JUnit tests the https://github.com/junit-pioneer/junit-pioneer library. If I now press the e button in the console after quarkus:dev start i get the exception:

2021-04-23 15:35:58,197 ERROR [io.qua.dep.dev.tes.TestRunner] (Test runner thread) Internal error running tests: java.util.ServiceConfigurationError: org.junit.platform.launcher.TestExecutionListener: org.junitpioneer.jupiter.issue.IssueExtensionExecutionListener not a subtype
        at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589)
        at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237)
        at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
        at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
        at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:108)
        at io.quarkus.deployment.dev.testing.JunitTestRunner.runTests(JunitTestRunner.java:141)
        at io.quarkus.deployment.dev.testing.TestRunner.runInternal(TestRunner.java:241)
        at io.quarkus.deployment.dev.testing.TestRunner$1.run(TestRunner.java:125)
        at java.base/java.lang.Thread.run(Thread.java:834)

Test:

@SetSystemProperty(key = OIDCConfiguration.CONFIG_PARAM_NAME_METADATAENDPOINT_URL, value = "invalidURL")
@Test
void getMetadataFailedTest() {
    assertThrows(InternalServerErrorException.class, () -> oidcProviderMetadataRetriever.getMetadata());
}

Any idea how to avoid this exception?

@franden franden added the kind/bug Something isn't working label Apr 23, 2021
@famod
Copy link
Member

famod commented Apr 23, 2021

/cc @stuartwdouglas

stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Apr 26, 2021
Also moves a misplaced fix for quarkusio#12498 to
the correct spot.

Fixes quarkusio#16762
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Apr 26, 2021
Also moves a misplaced fix for quarkusio#12498 to
the correct spot.

Fixes quarkusio#16762
Fixes quarkusio#16755
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants