Skip to content

Commit

Permalink
feat(java): remove default and strict test
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jun 15, 2022
1 parent 38c0ddc commit f857d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/java/pojo.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion templates/java/tests/requests/requests.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand Down

0 comments on commit f857d53

Please sign in to comment.