From 0d4b532fb524ead0ade4446e75c679ebe1175b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Petit?= Date: Sat, 1 Jul 2023 00:16:05 +0200 Subject: [PATCH] Fix UTs --- .../springdata/commondsl/JPASpecificationDSLIntTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jpadsl/src/test/kotlin/io/github/petitcl/springdata/commondsl/JPASpecificationDSLIntTest.kt b/src/jpadsl/src/test/kotlin/io/github/petitcl/springdata/commondsl/JPASpecificationDSLIntTest.kt index 073c76c..2abab30 100644 --- a/src/jpadsl/src/test/kotlin/io/github/petitcl/springdata/commondsl/JPASpecificationDSLIntTest.kt +++ b/src/jpadsl/src/test/kotlin/io/github/petitcl/springdata/commondsl/JPASpecificationDSLIntTest.kt @@ -206,13 +206,13 @@ open class JPASpecificationDSLIntTest { @Test fun `Get tv show by isMember`() { - val shows = tvShowRepo.findAll(TvShow::starRatings.isMember(theWalkingDead.starRatings.first())) + val shows = tvShowRepo.findAll(TvShow::starRatings.hasMember(theWalkingDead.starRatings.first())) assertThat(shows, containsInAnyOrder(theWalkingDead)) } @Test fun `Get tv show by isNotMember`() { - val shows = tvShowRepo.findAll(TvShow::starRatings.isNotMember(betterCallSaul.starRatings.first())) + val shows = tvShowRepo.findAll(TvShow::starRatings.hasNoMember(betterCallSaul.starRatings.first())) assertThat(shows, containsInAnyOrder(theWalkingDead, hemlockGrove)) }