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