https://linen.dev logo
#help
Title
# help
д

Дмитро Пашковський

11/13/2023, 10:51 AM
Hi, Could you help please. I use wiremock-standalone in auto tests and sometime I have error. It is fluky and I can not reproduce it each time. What could it be? PS The tests are executed in a single thread Java 17 wiremock-standalone 3.3.1
Copy code
[ERROR] test.TestGetProductListGet.testGetProductListXMLForCI(EventTypesForTestScenarios)[3]  Time elapsed: 0.344 s  <<< ERROR!
java.lang.Throwable: Test case exception: [engine:junit-platform-suite]/[suite:test.PolygonSuite]/[engine:junit-jupiter]/[class:test.TestGetProductListGet]/[test-template:testGetProductListXMLForCI(test.EventTypesForTestScenarios)]/[test-template-invocation:#3]
	Suppressed: com.github.tomakehurst.wiremock.common.JsonException: {
  "errors" : [ {
    "code" : 10,
    "source" : {
      "pointer" : "/"
    },
    "title" : "Error parsing JSON",
    "detail" : "Cannot construct instance of `com.github.tomakehurst.wiremock.common.Errors` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)"
  } ]
}
t

Tom

11/13/2023, 10:52 AM
Are you able to share a test project that reproduces this? I think it’ll be hard to debug without more context.
д

Дмитро Пашковський

11/13/2023, 1:56 PM
send to direct
3 Views