test: use property access syntax

This commit is contained in:
Gauthier Roebroeck 2022-11-10 17:41:17 +08:00
parent 2a5ce25193
commit d449ef1a43

View File

@ -179,7 +179,7 @@ class SeriesCollectionDaoTest(
assertThat(seriesIds) assertThat(seriesIds)
.hasSize(1) .hasSize(1)
.containsExactly(seriesLibrary1.id) .containsExactly(seriesLibrary1.id)
assertThat(filtered).isTrue() assertThat(filtered).isTrue
} }
assertThat(foundLibrary1Unfiltered).hasSize(2) assertThat(foundLibrary1Unfiltered).hasSize(2)
@ -188,7 +188,7 @@ class SeriesCollectionDaoTest(
assertThat(seriesIds) assertThat(seriesIds)
.hasSize(2) .hasSize(2)
.containsExactly(seriesLibrary1.id, seriesLibrary2.id) .containsExactly(seriesLibrary1.id, seriesLibrary2.id)
assertThat(filtered).isFalse() assertThat(filtered).isFalse
} }
assertThat(foundLibrary2Filtered).hasSize(2) assertThat(foundLibrary2Filtered).hasSize(2)
@ -197,7 +197,7 @@ class SeriesCollectionDaoTest(
assertThat(seriesIds) assertThat(seriesIds)
.hasSize(1) .hasSize(1)
.containsExactly(seriesLibrary2.id) .containsExactly(seriesLibrary2.id)
assertThat(filtered).isTrue() assertThat(filtered).isTrue
} }
assertThat(foundLibrary2Unfiltered).hasSize(2) assertThat(foundLibrary2Unfiltered).hasSize(2)
@ -206,7 +206,7 @@ class SeriesCollectionDaoTest(
assertThat(seriesIds) assertThat(seriesIds)
.hasSize(2) .hasSize(2)
.containsExactly(seriesLibrary1.id, seriesLibrary2.id) .containsExactly(seriesLibrary1.id, seriesLibrary2.id)
assertThat(filtered).isFalse() assertThat(filtered).isFalse
} }
assertThat(foundBothUnfiltered).hasSize(3) assertThat(foundBothUnfiltered).hasSize(3)
@ -215,7 +215,7 @@ class SeriesCollectionDaoTest(
assertThat(seriesIds) assertThat(seriesIds)
.hasSize(2) .hasSize(2)
.containsExactly(seriesLibrary1.id, seriesLibrary2.id) .containsExactly(seriesLibrary1.id, seriesLibrary2.id)
assertThat(filtered).isFalse() assertThat(filtered).isFalse
} }
} }
} }