avoid lazy-loading necessity in assertion
This commit is contained in:
parent
9e2e9b44d1
commit
7e608068e6
@ -231,7 +231,9 @@ class HsBookingItemRepositoryIntegrationTest extends ContextBasedTestWithCleanup
|
|||||||
private void assertThatBookingItemActuallyInDatabase(final HsBookingItemEntity saved) {
|
private void assertThatBookingItemActuallyInDatabase(final HsBookingItemEntity saved) {
|
||||||
final var found = bookingItemRepo.findByUuid(saved.getUuid());
|
final var found = bookingItemRepo.findByUuid(saved.getUuid());
|
||||||
assertThat(found).isNotEmpty().get().isNotSameAs(saved)
|
assertThat(found).isNotEmpty().get().isNotSameAs(saved)
|
||||||
.extracting(Object::toString).isEqualTo(saved.toString());
|
.extracting(HsBookingItemEntity::getResources)
|
||||||
|
.extracting(Object::toString)
|
||||||
|
.isEqualTo(saved.getResources().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user