From f476a4fad4ea77a74fd20f23be77ba0d3eb136f8 Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:00:16 +0100 Subject: [PATCH] fix last failing test --- bin/utils/test_file_list.yaml | 2 +- .../src/test/java/org/openapitools/client/api/PetApiTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml index e96d3b7997b0..5c63f356e280 100644 --- a/bin/utils/test_file_list.yaml +++ b/bin/utils/test_file_list.yaml @@ -36,7 +36,7 @@ - filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java" sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c - filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java" - sha256: 5fc397856b79562bb49082658dbc44a62f342834b1e510fe75545a7566e363af + sha256: 0cc079be64fe261b46f89976be2cbfad4fe5173dbe0d4b45303570299b0b5ecc - filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java" sha256: 3c41eb12d126f90392d97e3250b53ea9dce1663fb714a19339445b9da734d634 - filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java" diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java index 4ea039969554..6590a3d91bfd 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -206,7 +206,8 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) } while (result.isEmpty()); assertNotNull(exception); assertEquals(404, exception.getCode()); - assertEquals("Not Found", exception.getMessage()); + String pattern = "^Message: Not Found\\RHTTP response code: 404\\RHTTP response body: .*\\RHTTP response headers: .*$"; + assertTrue(exception.getMessage().matches(pattern)); assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); api.deletePet(pet.getId(), null); }