Skip to content

Commit 915a3ec

Browse files
committed
[#1533] Remove test with OffsetTime
The Vert.x MSSQL client doesn't support it and it's unclear how one would use it.
1 parent ba7be02 commit 915a3ec

File tree

1 file changed

+0
-22
lines changed
  • hibernate-reactive-core/src/test/java/org/hibernate/reactive

1 file changed

+0
-22
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/UTCTest.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.time.LocalDateTime;
1010
import java.time.LocalTime;
1111
import java.time.OffsetDateTime;
12-
import java.time.OffsetTime;
1312
import java.time.ZoneOffset;
1413
import java.time.ZonedDateTime;
1514
import java.time.temporal.ChronoUnit;
@@ -139,20 +138,6 @@ public void testOffsetDateTime(TestContext context) {
139138
);
140139
}
141140

142-
@Test
143-
public void testOffsetTime(TestContext context) {
144-
thing.offsetTime = OffsetTime
145-
.now( ZoneOffset.ofHours( 7 ) )
146-
.truncatedTo( ChronoUnit.SECONDS );
147-
148-
testField(
149-
context,
150-
"offsetTime",
151-
thing::getOffsetTime,
152-
// Same behavior as ORM
153-
entity -> context.assertEquals( thing.offsetTime, entity.offsetTime.withOffsetSameInstant( ZoneOffset.ofHours( 7 ) ) ) );
154-
}
155-
156141
@Test
157142
public void testZonedDateTime(TestContext context) {
158143
final ZoneOffset zoneOffset = ZoneOffset.ofHours( 7 );
@@ -204,9 +189,6 @@ public static class Thing {
204189
@Column(name = "offsetDateTimeType")
205190
OffsetDateTime offsetDateTime;
206191

207-
@Column(name = "offsetTimeType")
208-
OffsetTime offsetTime;
209-
210192
@Column(name = "zonedDateTimeType")
211193
ZonedDateTime zonedDateTime;
212194

@@ -231,10 +213,6 @@ public OffsetDateTime getOffsetDateTime() {
231213
return offsetDateTime;
232214
}
233215

234-
public OffsetTime getOffsetTime() {
235-
return offsetTime;
236-
}
237-
238216
public ZonedDateTime getZonedDateTime() {
239217
return zonedDateTime;
240218
}

0 commit comments

Comments
 (0)