Skip to content

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
petitcl committed Jun 30, 2023
1 parent 6c659d9 commit 0d4b532
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 0d4b532

Please sign in to comment.