45
45
import org .neo4j .driver .Record ;
46
46
import org .neo4j .driver .Result ;
47
47
import org .neo4j .driver .Value ;
48
+ import org .neo4j .driver .internal .util .DisabledOnNeo4jWith ;
48
49
import org .neo4j .driver .internal .util .EnabledOnNeo4jWith ;
50
+ import org .neo4j .driver .internal .util .Neo4jFeature ;
49
51
import org .neo4j .driver .types .IsoDuration ;
50
52
import org .neo4j .driver .util .ParallelizableIT ;
51
53
import org .neo4j .driver .util .SessionExtension ;
@@ -173,12 +175,14 @@ void shouldSendAndReceiveListsWithRandomLocalDateTimes() {
173
175
}
174
176
175
177
@ Test
178
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
176
179
void shouldSendDateTimeWithZoneOffset () {
177
180
ZoneOffset offset = ZoneOffset .ofHoursMinutes (-4 , -15 );
178
181
testSendValue (ZonedDateTime .of (1845 , 3 , 25 , 19 , 15 , 45 , 22 , offset ), Value ::asZonedDateTime );
179
182
}
180
183
181
184
@ Test
185
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
182
186
void shouldReceiveDateTimeWithZoneOffset () {
183
187
ZoneOffset offset = ZoneOffset .ofHoursMinutes (3 , 30 );
184
188
testReceiveValue (
@@ -188,27 +192,32 @@ void shouldReceiveDateTimeWithZoneOffset() {
188
192
}
189
193
190
194
@ Test
195
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
191
196
void shouldSendAndReceiveDateTimeWithZoneOffset () {
192
197
ZoneOffset offset = ZoneOffset .ofHoursMinutes (-7 , -15 );
193
198
testSendAndReceiveValue (ZonedDateTime .of (2017 , 3 , 9 , 11 , 12 , 13 , 14 , offset ), Value ::asZonedDateTime );
194
199
}
195
200
196
201
@ Test
202
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
197
203
void shouldSendAndReceiveRandomDateTimeWithZoneOffset () {
198
204
testSendAndReceiveRandomValues (TemporalUtil ::randomZonedDateTimeWithOffset , Value ::asZonedDateTime );
199
205
}
200
206
201
207
@ Test
208
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
202
209
void shouldSendAndReceiveListsWithRandomDateTimeWithZoneOffsets () {
203
210
testSendAndReceiveRandomLists (TemporalUtil ::randomZonedDateTimeWithOffset );
204
211
}
205
212
206
213
@ Test
214
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
207
215
void shouldSendDateTimeRepresentedWithOffsetDateTime () {
208
216
testSendValue (OffsetDateTime .of (1851 , 9 , 29 , 1 , 29 , 42 , 987 , ZoneOffset .ofHours (-8 )), Value ::asOffsetDateTime );
209
217
}
210
218
211
219
@ Test
220
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
212
221
void shouldReceiveDateTimeRepresentedWithOffsetDateTime () {
213
222
testReceiveValue (
214
223
"RETURN datetime({year:2121, month:1, day:1, hour:2, minute:2, second:2, timezone:'-07:20'})" ,
@@ -217,29 +226,34 @@ void shouldReceiveDateTimeRepresentedWithOffsetDateTime() {
217
226
}
218
227
219
228
@ Test
229
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
220
230
void shouldSendAndReceiveDateTimeRepresentedWithOffsetDateTime () {
221
231
testSendAndReceiveValue (
222
232
OffsetDateTime .of (1998 , 12 , 12 , 23 , 54 , 14 , 123 , ZoneOffset .ofHoursMinutes (1 , 15 )),
223
233
Value ::asOffsetDateTime );
224
234
}
225
235
226
236
@ Test
237
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
227
238
void shouldSendAndReceiveRandomDateTimeRepresentedWithOffsetDateTime () {
228
239
testSendAndReceiveRandomValues (TemporalUtil ::randomOffsetDateTime , Value ::asOffsetDateTime );
229
240
}
230
241
231
242
@ Test
243
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
232
244
void shouldSendAndReceiveListsWithRandomDateTimeRepresentedWithOffsetDateTimes () {
233
245
testSendAndReceiveRandomLists (TemporalUtil ::randomOffsetDateTime , value -> value .asList (ofOffsetDateTime ()));
234
246
}
235
247
236
248
@ Test
249
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
237
250
void shouldSendDateTimeWithZoneId () {
238
251
ZoneId zoneId = ZoneId .of ("Europe/Stockholm" );
239
252
testSendValue (ZonedDateTime .of (2049 , 9 , 11 , 19 , 10 , 40 , 20 , zoneId ), Value ::asZonedDateTime );
240
253
}
241
254
242
255
@ Test
256
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
243
257
void shouldReceiveDateTimeWithZoneId () {
244
258
ZoneId zoneId = ZoneId .of ("Europe/London" );
245
259
testReceiveValue (
@@ -249,17 +263,20 @@ void shouldReceiveDateTimeWithZoneId() {
249
263
}
250
264
251
265
@ Test
266
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
252
267
void shouldSendAndReceiveDateTimeWithZoneId () {
253
268
ZoneId zoneId = ZoneId .of ("Europe/Stockholm" );
254
269
testSendAndReceiveValue (ZonedDateTime .of (2099 , 12 , 29 , 12 , 59 , 59 , 59 , zoneId ), Value ::asZonedDateTime );
255
270
}
256
271
257
272
@ Test
273
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
258
274
void shouldSendAndReceiveRandomDateTimeWithZoneId () {
259
275
testSendAndReceiveRandomValues (TemporalUtil ::randomZonedDateTimeWithZoneId , Value ::asZonedDateTime );
260
276
}
261
277
262
278
@ Test
279
+ @ DisabledOnNeo4jWith (Neo4jFeature .BOLT_V5 )
263
280
void shouldSendAndReceiveListsWithRandomDateTimeWithZoneIds () {
264
281
testSendAndReceiveRandomLists (TemporalUtil ::randomZonedDateTimeWithZoneId );
265
282
}
0 commit comments