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

Stop passing the Webhooks extension classpath for WireMock 3.x in tests #100

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

oleg-nenashev
Copy link
Member

The current implementation will crash, because of java.lang.NoSuchMethodException: org.wiremock.webhooks.Webhooks.<init>()

11:20:23.154 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: Exception in thread "main" java.lang.NoSuchMethodException: org.wiremock.webhooks.Webhooks.<init>()
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.lang.Class.getConstructor0(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.lang.Class.getDeclaredConstructor(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at com.github.tomakehurst.wiremock.extension.Extensions.load(Extensions.java:226)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
11:20:23.155 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at com.github.tomakehurst.wiremock.extension.Extensions.load(Extensions.java:77)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at com.github.tomakehurst.wiremock.core.WireMockApp.<init>(WireMockApp.java:94)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:71)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:66)
11:20:23.156 [docker-java-stream-1319901105] INFO  org.wiremock.docker.it.extensions.WireMockContainerExtensionsWebhookTest - STDERR: 	at wiremock.Run.main(Run.java:23)
11:21:22.844 [main] ERROR tc.wiremock/wiremock:test-alpine - Could not start container

@oleg-nenashev oleg-nenashev added the chore Maintenance label Dec 11, 2023
@oleg-nenashev oleg-nenashev changed the title Stop passing the Webhooks extension classpath for WireMock 3.x Stop passing the Webhooks extension classpath for WireMock 3.x in tests Dec 11, 2023
@oleg-nenashev oleg-nenashev merged commit 43516be into wiremock:main Dec 11, 2023
2 checks passed
@oleg-nenashev oleg-nenashev deleted the 3.x-update branch December 11, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant