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
Add since tags to extension methods and issue references to tests.
Update antora playbook to consider maintenance branches.
Original Pull Request: #4753
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/kotlin/org/springframework/data/mongodb/core/query/TypedUpdateExtensionsTests.kt
+24-24
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2018-2024 the original author or authors.
2
+
* Copyright 2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import java.time.Instant
27
27
*/
28
28
classTypedUpdateExtensionsTests {
29
29
30
-
@Test
30
+
@Test// GH-3028
31
31
fun`update() should equal expected Update`() {
32
32
33
33
val typed = update(Book::title, "Moby-Dick")
@@ -36,7 +36,7 @@ class TypedUpdateExtensionsTests {
36
36
assertThat(typed).isEqualTo(expected)
37
37
}
38
38
39
-
@Test
39
+
@Test// GH-3028
40
40
fun`set() should equal expected Update`() {
41
41
42
42
val typed =Update().set(Book::title, "Moby-Dick")
@@ -45,7 +45,7 @@ class TypedUpdateExtensionsTests {
45
45
assertThat(typed).isEqualTo(expected)
46
46
}
47
47
48
-
@Test
48
+
@Test// GH-3028
49
49
fun`setOnInsert() should equal expected Update`() {
50
50
51
51
val typed =Update().setOnInsert(Book::title, "Moby-Dick")
@@ -54,7 +54,7 @@ class TypedUpdateExtensionsTests {
54
54
assertThat(typed).isEqualTo(expected)
55
55
}
56
56
57
-
@Test
57
+
@Test// GH-3028
58
58
fun`unset() should equal expected Update`() {
59
59
60
60
val typed =Update().unset(Book::title)
@@ -63,7 +63,7 @@ class TypedUpdateExtensionsTests {
63
63
assertThat(typed).isEqualTo(expected)
64
64
}
65
65
66
-
@Test
66
+
@Test// GH-3028
67
67
fun`inc(key, inc) should equal expected Update`() {
68
68
69
69
val typed =Update().inc(Book::price, 5)
@@ -72,7 +72,7 @@ class TypedUpdateExtensionsTests {
72
72
assertThat(typed).isEqualTo(expected)
73
73
}
74
74
75
-
@Test
75
+
@Test// GH-3028
76
76
fun`inc(key) should equal expected Update`() {
77
77
78
78
val typed =Update().inc(Book::price)
@@ -81,7 +81,7 @@ class TypedUpdateExtensionsTests {
81
81
assertThat(typed).isEqualTo(expected)
82
82
}
83
83
84
-
@Test
84
+
@Test// GH-3028
85
85
fun`push(key, value) should equal expected Update`() {
86
86
87
87
val typed =Update().push(Book::categories, "someCategory")
@@ -90,7 +90,7 @@ class TypedUpdateExtensionsTests {
90
90
assertThat(typed).isEqualTo(expected)
91
91
}
92
92
93
-
@Test
93
+
@Test// GH-3028
94
94
fun`push(key) should equal expected Update`() {
95
95
96
96
val typed =Update().push(Book::categories)
@@ -99,7 +99,7 @@ class TypedUpdateExtensionsTests {
99
99
assertThat(typed).isEqualTo(expected)
100
100
}
101
101
102
-
@Test
102
+
@Test// GH-3028
103
103
fun`addToSet(key) should equal expected Update`() {
104
104
105
105
val typed =Update().addToSet(Book::categories).each("category", "category2")
@@ -108,7 +108,7 @@ class TypedUpdateExtensionsTests {
108
108
assertThat(typed).isEqualTo(expected)
109
109
}
110
110
111
-
@Test
111
+
@Test// GH-3028
112
112
fun`addToSet(key, value) should equal expected Update`() {
113
113
114
114
val typed =Update().addToSet(Book::categories, "someCategory")
@@ -117,7 +117,7 @@ class TypedUpdateExtensionsTests {
117
117
assertThat(typed).isEqualTo(expected)
118
118
}
119
119
120
-
@Test
120
+
@Test// GH-3028
121
121
fun`pop() should equal expected Update`() {
122
122
123
123
val typed =Update().pop(Book::categories, Update.Position.FIRST)
@@ -126,7 +126,7 @@ class TypedUpdateExtensionsTests {
126
126
assertThat(typed).isEqualTo(expected)
127
127
}
128
128
129
-
@Test
129
+
@Test// GH-3028
130
130
fun`pull() should equal expected Update`() {
131
131
132
132
val typed =Update().pull(Book::categories, "someCategory")
@@ -135,7 +135,7 @@ class TypedUpdateExtensionsTests {
135
135
assertThat(typed).isEqualTo(expected)
136
136
}
137
137
138
-
@Test
138
+
@Test// GH-3028
139
139
fun`pullAll() should equal expected Update`() {
140
140
141
141
val typed =Update().pullAll(Book::categories, arrayOf("someCategory", "someCategory2"))
@@ -144,7 +144,7 @@ class TypedUpdateExtensionsTests {
144
144
assertThat(typed).isEqualTo(expected)
145
145
}
146
146
147
-
@Test
147
+
@Test// GH-3028
148
148
fun`currentDate() should equal expected Update`() {
149
149
150
150
val typed =Update().currentDate(Book::releaseDate)
@@ -153,7 +153,7 @@ class TypedUpdateExtensionsTests {
153
153
assertThat(typed).isEqualTo(expected)
154
154
}
155
155
156
-
@Test
156
+
@Test// GH-3028
157
157
fun`currentTimestamp() should equal expected Update`() {
158
158
159
159
val typed =Update().currentTimestamp(Book::releaseDate)
@@ -162,7 +162,7 @@ class TypedUpdateExtensionsTests {
162
162
assertThat(typed).isEqualTo(expected)
163
163
}
164
164
165
-
@Test
165
+
@Test// GH-3028
166
166
fun`multiply() should equal expected Update`() {
167
167
168
168
val typed =Update().multiply(Book::price, 2)
@@ -171,7 +171,7 @@ class TypedUpdateExtensionsTests {
171
171
assertThat(typed).isEqualTo(expected)
172
172
}
173
173
174
-
@Test
174
+
@Test// GH-3028
175
175
fun`max() should equal expected Update`() {
176
176
177
177
val typed =Update().max(Book::price, 200)
@@ -180,7 +180,7 @@ class TypedUpdateExtensionsTests {
180
180
assertThat(typed).isEqualTo(expected)
181
181
}
182
182
183
-
@Test
183
+
@Test// GH-3028
184
184
fun`min() should equal expected Update`() {
185
185
186
186
val typed =Update().min(Book::price, 100)
@@ -189,7 +189,7 @@ class TypedUpdateExtensionsTests {
189
189
assertThat(typed).isEqualTo(expected)
190
190
}
191
191
192
-
@Test
192
+
@Test// GH-3028
193
193
fun`bitwise() should equal expected Update`() {
194
194
195
195
val typed =Update().bitwise(Book::price).and(2)
@@ -198,7 +198,7 @@ class TypedUpdateExtensionsTests {
198
198
assertThat(typed).isEqualTo(expected)
199
199
}
200
200
201
-
@Test
201
+
@Test// GH-3028
202
202
fun`filterArray() should equal expected Update`() {
203
203
204
204
val typed =Update().filterArray(Book::categories, "someCategory")
@@ -207,7 +207,7 @@ class TypedUpdateExtensionsTests {
207
207
assertThat(typed).isEqualTo(expected)
208
208
}
209
209
210
-
@Test
210
+
@Test// GH-3028
211
211
fun`typed modifies() should equal expected modifies()`() {
212
212
213
213
val typed = update(Book::title, "Moby-Dick")
@@ -216,7 +216,7 @@ class TypedUpdateExtensionsTests {
0 commit comments