Skip to content

Commit f08db22

Browse files
committed
Clean up comments in UTCTest
1 parent 1fba5aa commit f08db22

File tree

1 file changed

+2
-9
lines changed
  • hibernate-reactive-core/src/test/java/org/hibernate/reactive

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,8 @@ public void testOffsetTime(TestContext context) {
149149
context,
150150
"offsetTime",
151151
thing::getOffsetTime,
152-
entity -> {
153-
// UTC is what we have set as the default with AvailableSettings.JDBC_TIME_ZONE
154-
// this first check fails due to changes in ORM org.hibernate.type.descriptor.java.OffsetTimeJavaType.unwrap(...)
155-
// TODO: investigate whether this first check makes sense
156-
// context.assertEquals( ZoneOffset.UTC, entity.offsetTime.getOffset() );
157-
context.assertEquals( thing.offsetTime, entity.offsetTime.withOffsetSameInstant( ZoneOffset.ofHours( 7 ) )
158-
);
159-
}
160-
);
152+
// Same behavior as ORM
153+
entity -> context.assertEquals( thing.offsetTime, entity.offsetTime.withOffsetSameInstant( ZoneOffset.ofHours( 7 ) ) ) );
161154
}
162155

163156
@Test

0 commit comments

Comments
 (0)