com.github.tomakehurst.wiremock.client.VerificationException: Expected exactly 4 requests matching the following pattern but received 3: { "url" : "/my-url/2", "method" : "GET" }

GitHub | RaphC | 1 week ago
  1. 0

    GitHub comment 565#271297122

    GitHub | 1 week ago | RaphC
    com.github.tomakehurst.wiremock.client.VerificationException: Expected exactly 4 requests matching the following pattern but received 3: { "url" : "/my-url/2", "method" : "GET" }
  2. 0

    Trouble Getting Started

    GitHub | 5 months ago | zhao-li
    com.github.tomakehurst.wiremock.client.VerificationException: Expected status 200 for http://localhost:8080/__admin/near-misses/request-pattern but was 500
  3. 0

    Trouble Getting Started

    Google Groups | 5 months ago | A L
    com.github.tomakehurst.wiremock.client.VerificationException: Expected status 200 for http://localhost:8080/__admin/near-misses/request-pattern but was 500
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wiremock misleadingly tells it failed to communicate with admin endpoint

    GitHub | 2 years ago | kmejka
    com.github.tomakehurst.wiremock.client.VerificationException: Expected status 200 for http://localhost:8090/__admin/requests/count but was 500
  6. 0

    Internal server error and failure to connect

    Google Groups | 4 months ago | Unknown author
    com.github.tomakehurst.wiremock.client.VerificationException: Expected status 201 for http://localhost:8080/__admin/mappings/new but was 500

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.github.tomakehurst.wiremock.client.VerificationException

      Expected exactly 4 requests matching the following pattern but received 3: { "url" : "/my-url/2", "method" : "GET" }

      at com.github.tomakehurst.wiremock.client.WireMock.verifyThat()
    2. WireMock
      WireMock.verify
      1. com.github.tomakehurst.wiremock.client.WireMock.verifyThat(WireMock.java:385)
      2. com.github.tomakehurst.wiremock.client.WireMock.verifyThat(WireMock.java:368)
      3. com.github.tomakehurst.wiremock.client.WireMock.verify(WireMock.java:406)
      3 frames
    3. com.bouygtel.swad
      BugWiremock.get_with_request_timeout
      1. com.bouygtel.swad.gloud.aws.s3.service.BugWiremock.get_with_request_timeout(BugWiremock.java:109)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. JUnit
      RunBefores.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      5 frames
    6. Spring TestContext
      RunBeforeTestMethodCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
      1 frame
    7. JUnit
      RunAfters.evaluate
      1. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      1 frame
    8. Spring TestContext
      RunAfterTestMethodCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
      1 frame
    9. WireMock
      WireMockClassRule$1.evaluate
      1. com.github.tomakehurst.wiremock.junit.WireMockClassRule$1.evaluate(WireMockClassRule.java:70)
      1 frame
    10. JUnit
      RunRules.evaluate
      1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      1 frame
    11. Spring TestContext
      SpringRepeat.evaluate
      1. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
      1 frame
    12. JUnit
      ParentRunner.runLeaf
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      1 frame
    13. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
      2 frames
    14. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    15. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
      2 frames
    16. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      1 frame
    17. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
      1 frame
    18. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      1 frame
    19. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames