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: spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query/TypedCriteriaExtensions.kt
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/kotlin/org/springframework/data/mongodb/core/query/TypedCriteriaExtensionsTest.kt
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -319,10 +319,10 @@ class TypedCriteriaExtensionsTest {
319
319
fun`or operator() typed criteria should equal classic criteria`() {
320
320
val typed = typedCriteria {
321
321
Book::name isEqualTo "Moby-Dick"
322
-
or {
323
-
Book::price lt 1200
324
-
Book::price gt 240
325
-
}
322
+
or(
323
+
{ Book::price lt 1200 },
324
+
{ Book::price gt 240 }
325
+
)
326
326
}
327
327
val classic =Criteria("name").isEqualTo("Moby-Dick")
328
328
.orOperator(
@@ -336,10 +336,10 @@ class TypedCriteriaExtensionsTest {
336
336
fun`nor() typed criteria should equal classic criteria`() {
337
337
val typed = typedCriteria {
338
338
Book::name isEqualTo "Moby-Dick"
339
-
nor {
340
-
Book::price lt 1200
341
-
Book::price gt 240
342
-
}
339
+
nor(
340
+
{ Book::price lt 1200 },
341
+
{ Book::price gt 240 }
342
+
)
343
343
}
344
344
val classic =Criteria("name").isEqualTo("Moby-Dick")
345
345
.norOperator(
@@ -353,10 +353,10 @@ class TypedCriteriaExtensionsTest {
353
353
fun`and() typed criteria should equal classic criteria`() {
354
354
val typed = typedCriteria {
355
355
Book::name isEqualTo "Moby-Dick"
356
-
and {
357
-
Book::price lt 1200
358
-
Book::price gt 240
359
-
}
356
+
and(
357
+
{ Book::price lt 1200 },
358
+
{ Book::price gt 240 }
359
+
)
360
360
}
361
361
val classic =Criteria("name").isEqualTo("Moby-Dick")
0 commit comments