From f857d53571248ada216ca52840734b64752892e2 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Wed, 15 Jun 2022 18:25:00 +0200 Subject: [PATCH] feat(java): remove default and strict test --- templates/java/pojo.mustache | 4 ++-- templates/java/tests/requests/requests.mustache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/java/pojo.mustache b/templates/java/pojo.mustache index dd2ed4f44a..48c617d4be 100644 --- a/templates/java/pojo.mustache +++ b/templates/java/pojo.mustache @@ -24,10 +24,10 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{ @SerializedName("{{baseName}}") {{/gson}} {{#isContainer}} - private {{{datatypeWithEnum}}} {{name}}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}}{{^required}} = null{{/required}}; + private {{{datatypeWithEnum}}} {{name}}; {{/isContainer}} {{^isContainer}} - {{#isDiscriminator}}protected{{/isDiscriminator}}{{^isDiscriminator}}private{{/isDiscriminator}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + {{#isDiscriminator}}protected{{/isDiscriminator}}{{^isDiscriminator}}private{{/isDiscriminator}} {{{datatypeWithEnum}}} {{name}}; {{/isContainer}} {{/vars}} diff --git a/templates/java/tests/requests/requests.mustache b/templates/java/tests/requests/requests.mustache index bd54346ee1..4956ddc174 100644 --- a/templates/java/tests/requests/requests.mustache +++ b/templates/java/tests/requests/requests.mustache @@ -64,7 +64,7 @@ class {{client}}RequestsTests { {{#request.body}} assertDoesNotThrow(() -> { - JSONAssert.assertEquals("{{#lambda.escapeQuotes}}{{{request.body}}}{{/lambda.escapeQuotes}}", req.body, JSONCompareMode.STRICT_ORDER); + JSONAssert.assertEquals("{{#lambda.escapeQuotes}}{{{request.body}}}{{/lambda.escapeQuotes}}", req.body, JSONCompareMode.STRICT); }); {{/request.body}}