Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 6, 2024
1 parent 07aedc6 commit 9b22aea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package <%= entityAbsolutePackage %>.web.rest;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.hamcrest.Matchers.comparesEqualTo;
<%_
var filterTestableRelationships = (reactive ? reactiveEagerRelations : relationships).filter(rel => rel.persistableRelationship && !rel.otherEntity.hasCyclicRequiredRelationship);
Expand Down Expand Up @@ -1847,7 +1846,7 @@ _%>
assertAll("Verify properties",
<%_ for (const field of fields.filter(field => !field.transient && !field.autoGenerate)) { _%>
<%_ if (field.fieldTypeBigDecimal) { _%>
() -> assertEquals(<%- persistInstance %>1.get<%- field.fieldInJavaBeanMethod %>(), comparesEqualTo(<%- persistInstance %>2.get<%- field.fieldInJavaBeanMethod %>())),
() -> assertThat(<%- persistInstance %>1.get<%- field.fieldInJavaBeanMethod %>()).isEqualByComparingTo(<%- persistInstance %>2.get<%- field.fieldInJavaBeanMethod %>())),
<%_ } else { _%>
<%_ if (field.fieldTypeBinary && !field.blobContentTypeText) { _%>
() -> assertEquals(<%- persistInstance %>1.get<%- field.fieldInJavaBeanMethod %>ContentType(), <%- persistInstance %>2.get<%- field.fieldInJavaBeanMethod %>ContentType()),
Expand Down

0 comments on commit 9b22aea

Please sign in to comment.