Skip to content

Commit 0d4b532

Browse files
committed
Fix UTs
1 parent 6c659d9 commit 0d4b532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jpadsl/src/test/kotlin/io/github/petitcl/springdata/commondsl/JPASpecificationDSLIntTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ open class JPASpecificationDSLIntTest {
206206

207207
@Test
208208
fun `Get tv show by isMember`() {
209-
val shows = tvShowRepo.findAll(TvShow::starRatings.isMember(theWalkingDead.starRatings.first()))
209+
val shows = tvShowRepo.findAll(TvShow::starRatings.hasMember(theWalkingDead.starRatings.first()))
210210
assertThat(shows, containsInAnyOrder(theWalkingDead))
211211
}
212212

213213
@Test
214214
fun `Get tv show by isNotMember`() {
215-
val shows = tvShowRepo.findAll(TvShow::starRatings.isNotMember(betterCallSaul.starRatings.first()))
215+
val shows = tvShowRepo.findAll(TvShow::starRatings.hasNoMember(betterCallSaul.starRatings.first()))
216216
assertThat(shows, containsInAnyOrder(theWalkingDead, hemlockGrove))
217217
}
218218

0 commit comments

Comments
 (0)