Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 8, 2024
1 parent 3135ff2 commit f6d6219
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ _%>
<%_ for (const relationship of relationships.filter(relationship => !relationship.autoGenerate && !relationship.otherEntity.builtInUser)) { _%>
<%_ if (reactive && databaseTypeSql) { _%>
// Test fails because reactive api returns an empty object instead of null
<% if (relationship.collection) { %>// <% } %>() -> assertThat(expected.get<%- relationship.propertyJavaBeanName %>()).as("check <%- relationship.propertyName %>").isEqualTo(actual.get<%- relationship.propertyJavaBeanName %>() == null || actual.get<%- relationship.propertyJavaBeanName %>().get<%- primaryKey.nameCapitalized %>() == null ? null : actual.get<%- relationship.propertyJavaBeanName %>()),
<% if (relationship.collection) { %>// <% } %>() -> assertThat(expected.get<%- relationship.propertyJavaBeanName %>()).as("check <%- relationship.propertyName %>").isEqualTo((actual.get<%- relationship.propertyJavaBeanName %>() == null || actual.get<%- relationship.propertyJavaBeanName %>().get<%- primaryKey.nameCapitalized %>() == null) ? null : actual.get<%- relationship.propertyJavaBeanName %>()),
<%_ } else { _%>
() -> assertThat(expected.get<%- relationship.propertyJavaBeanName %>()).as("check <%- relationship.propertyName %>").isEqualTo(actual.get<%- relationship.propertyJavaBeanName %>()),
<%_ } _%>
Expand Down

0 comments on commit f6d6219

Please sign in to comment.