From 03e7a92cdb50b06d5334853213d490291d0e94ca Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 4 Nov 2023 21:27:00 +0800 Subject: [PATCH] add test --- .../src/test/java/org/openapitools/client/ClientTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java index e4a9e8440107..9e8b98664252 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java @@ -66,5 +66,8 @@ public void testPet() { model2.setName("Dog"); Assert.assertTrue(model.equals(model2)); + + // test toJson, shouldn't throw exception + String test = model.toJson(); } }