You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/java/io/github/quinnandrews/spring/data/specification/builder/SpecificationBuilderIntegrationTest.java
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -317,7 +317,7 @@ void or_withSpecification() {
317
317
voidisEqualTo() {
318
318
varoptionalPedal = guitarPedalRepository.findOne(
319
319
SpecificationBuilder.from(GuitarPedal.class)
320
-
.isEqualTo(GuitarPedal_.id, 3L)
320
+
.where().isEqualTo(GuitarPedal_.id, 3L)
321
321
.toSpecification());
322
322
assertTrue(optionalPedal.isPresent());
323
323
assertEquals(3L, optionalPedal.get().getId());
@@ -328,7 +328,7 @@ void isEqualTo() {
328
328
voidisNotEqualTo() {
329
329
varpedals = guitarPedalRepository.findAll(
330
330
SpecificationBuilder.from(GuitarPedal.class)
331
-
.isNotEqualTo(GuitarPedal_.id, 3L)
331
+
.where().isNotEqualTo(GuitarPedal_.id, 3L)
332
332
.toSpecification());
333
333
assertEquals(3, pedals.size());
334
334
assertTrue(pedals.stream()
@@ -341,7 +341,7 @@ void isNotEqualTo() {
341
341
voidisLike() {
342
342
varpedals = guitarPedalRepository.findAll(
343
343
SpecificationBuilder.from(GuitarPedal.class)
344
-
.isLike(GuitarPedal_.name, "%and%")
344
+
.where().isLike(GuitarPedal_.name, "%and%")
345
345
.toSpecification(), Sort.by("name"));
346
346
assertEquals(2, pedals.size());
347
347
assertEquals("Deco: Tape Saturation and Double Tracker", pedals.get(0).getName());
0 commit comments