Skip to content

Commit 9f34a7c

Browse files
authored
Enable UTC tests for Bolt 5.0 (#1308)
1 parent bd0a8fc commit 9f34a7c

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

driver/src/test/java/org/neo4j/driver/integration/TemporalTypesIT.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
import org.neo4j.driver.Record;
4646
import org.neo4j.driver.Result;
4747
import org.neo4j.driver.Value;
48-
import org.neo4j.driver.internal.util.DisabledOnNeo4jWith;
4948
import org.neo4j.driver.internal.util.EnabledOnNeo4jWith;
50-
import org.neo4j.driver.internal.util.Neo4jFeature;
5149
import org.neo4j.driver.testutil.ParallelizableIT;
5250
import org.neo4j.driver.testutil.SessionExtension;
5351
import org.neo4j.driver.testutil.TemporalUtil;
@@ -175,14 +173,12 @@ void shouldSendAndReceiveListsWithRandomLocalDateTimes() {
175173
}
176174

177175
@Test
178-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
179176
void shouldSendDateTimeWithZoneOffset() {
180177
ZoneOffset offset = ZoneOffset.ofHoursMinutes(-4, -15);
181178
testSendValue(ZonedDateTime.of(1845, 3, 25, 19, 15, 45, 22, offset), Value::asZonedDateTime);
182179
}
183180

184181
@Test
185-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
186182
void shouldReceiveDateTimeWithZoneOffset() {
187183
ZoneOffset offset = ZoneOffset.ofHoursMinutes(3, 30);
188184
testReceiveValue(
@@ -192,32 +188,27 @@ void shouldReceiveDateTimeWithZoneOffset() {
192188
}
193189

194190
@Test
195-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
196191
void shouldSendAndReceiveDateTimeWithZoneOffset() {
197192
ZoneOffset offset = ZoneOffset.ofHoursMinutes(-7, -15);
198193
testSendAndReceiveValue(ZonedDateTime.of(2017, 3, 9, 11, 12, 13, 14, offset), Value::asZonedDateTime);
199194
}
200195

201196
@Test
202-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
203197
void shouldSendAndReceiveRandomDateTimeWithZoneOffset() {
204198
testSendAndReceiveRandomValues(TemporalUtil::randomZonedDateTimeWithOffset, Value::asZonedDateTime);
205199
}
206200

207201
@Test
208-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
209202
void shouldSendAndReceiveListsWithRandomDateTimeWithZoneOffsets() {
210203
testSendAndReceiveRandomLists(TemporalUtil::randomZonedDateTimeWithOffset);
211204
}
212205

213206
@Test
214-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
215207
void shouldSendDateTimeRepresentedWithOffsetDateTime() {
216208
testSendValue(OffsetDateTime.of(1851, 9, 29, 1, 29, 42, 987, ZoneOffset.ofHours(-8)), Value::asOffsetDateTime);
217209
}
218210

219211
@Test
220-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
221212
void shouldReceiveDateTimeRepresentedWithOffsetDateTime() {
222213
testReceiveValue(
223214
"RETURN datetime({year:2121, month:1, day:1, hour:2, minute:2, second:2, timezone:'-07:20'})",
@@ -226,34 +217,29 @@ void shouldReceiveDateTimeRepresentedWithOffsetDateTime() {
226217
}
227218

228219
@Test
229-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
230220
void shouldSendAndReceiveDateTimeRepresentedWithOffsetDateTime() {
231221
testSendAndReceiveValue(
232222
OffsetDateTime.of(1998, 12, 12, 23, 54, 14, 123, ZoneOffset.ofHoursMinutes(1, 15)),
233223
Value::asOffsetDateTime);
234224
}
235225

236226
@Test
237-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
238227
void shouldSendAndReceiveRandomDateTimeRepresentedWithOffsetDateTime() {
239228
testSendAndReceiveRandomValues(TemporalUtil::randomOffsetDateTime, Value::asOffsetDateTime);
240229
}
241230

242231
@Test
243-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
244232
void shouldSendAndReceiveListsWithRandomDateTimeRepresentedWithOffsetDateTimes() {
245233
testSendAndReceiveRandomLists(TemporalUtil::randomOffsetDateTime, value -> value.asList(ofOffsetDateTime()));
246234
}
247235

248236
@Test
249-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
250237
void shouldSendDateTimeWithZoneId() {
251238
ZoneId zoneId = ZoneId.of("Europe/Stockholm");
252239
testSendValue(ZonedDateTime.of(2049, 9, 11, 19, 10, 40, 20, zoneId), Value::asZonedDateTime);
253240
}
254241

255242
@Test
256-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
257243
void shouldReceiveDateTimeWithZoneId() {
258244
ZoneId zoneId = ZoneId.of("Europe/London");
259245
testReceiveValue(
@@ -263,20 +249,17 @@ void shouldReceiveDateTimeWithZoneId() {
263249
}
264250

265251
@Test
266-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
267252
void shouldSendAndReceiveDateTimeWithZoneId() {
268253
ZoneId zoneId = ZoneId.of("Europe/Stockholm");
269254
testSendAndReceiveValue(ZonedDateTime.of(2099, 12, 29, 12, 59, 59, 59, zoneId), Value::asZonedDateTime);
270255
}
271256

272257
@Test
273-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
274258
void shouldSendAndReceiveRandomDateTimeWithZoneId() {
275259
testSendAndReceiveRandomValues(TemporalUtil::randomZonedDateTimeWithZoneId, Value::asZonedDateTime);
276260
}
277261

278262
@Test
279-
@DisabledOnNeo4jWith(Neo4jFeature.BOLT_V5)
280263
void shouldSendAndReceiveListsWithRandomDateTimeWithZoneIds() {
281264
testSendAndReceiveRandomLists(TemporalUtil::randomZonedDateTimeWithZoneId);
282265
}

driver/src/test/java/org/neo4j/driver/integration/TransactionBoltV3IT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;
2727
import static org.junit.jupiter.api.Assertions.fail;
2828
import static org.neo4j.driver.internal.util.Neo4jFeature.BOLT_V3;
29-
import static org.neo4j.driver.internal.util.Neo4jFeature.BOLT_V5;
3029
import static org.neo4j.driver.testutil.TestUtil.TX_TIMEOUT_TEST_TIMEOUT;
3130
import static org.neo4j.driver.testutil.TestUtil.await;
3231

@@ -47,7 +46,6 @@
4746
import org.neo4j.driver.async.ResultCursor;
4847
import org.neo4j.driver.exceptions.ClientException;
4948
import org.neo4j.driver.exceptions.TransientException;
50-
import org.neo4j.driver.internal.util.DisabledOnNeo4jWith;
5149
import org.neo4j.driver.internal.util.EnabledOnNeo4jWith;
5250
import org.neo4j.driver.testutil.DriverExtension;
5351
import org.neo4j.driver.testutil.ParallelizableIT;
@@ -85,7 +83,6 @@ void shouldSetTransactionMetadata() {
8583
}
8684

8785
@Test
88-
@DisabledOnNeo4jWith(BOLT_V5)
8986
void shouldSetTransactionMetadataAsync() {
9087
Map<String, Object> metadata = new HashMap<>();
9188
metadata.put("hello", "world");

0 commit comments

Comments
 (0)