Skip to content

Commit

Permalink
Update _persistClass_Test.java.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 29, 2023
1 parent 888c854 commit 74f9b30
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ class <%= persistClass %>Test {
<%_ if (relationship.collection) { _%>

<%= persistInstance %>.remove<%- relationship.relationshipNameCapitalized %>(<%= relationship.otherEntity.persistInstance %>Back);
assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).doesNotContain(<%= relationship.otherEntity.persistInstance %>Back);
<%_ } else { _%>

<%= persistInstance %>.set<%- relationship.relationshipNameCapitalized %>(null);
assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).isNull();
<%_ } _%>
<%_ if (relationship.otherRelationship && !relationship.ownerSide && !relationship.otherEntity.embedded) { _%>
<%_ if (relationship.otherRelationship.collection) { _%>

assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.otherRelationship.propertyNameCapitalized %>()).doesNotContain(<%= relationship.otherEntity.persistInstance %>);
<%_ } else { _%>
assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.otherRelationship.propertyNameCapitalized %>()).isNull();
<%_ } _%>
Expand Down

0 comments on commit 74f9b30

Please sign in to comment.