let's see if this works
This commit is contained in:
parent
ef4ed9936e
commit
015010febb
|
@ -38,8 +38,8 @@ public class AutoZonedTest {
|
|||
Zoned z = s.find(Zoned.class, id);
|
||||
if ( scope.getSessionFactory().getJdbcServices().getDialect() instanceof SybaseDialect) {
|
||||
// Sybase with jTDS driver has 1/300th sec precision
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/10, z.zonedDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/10, z.offsetDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/30, z.zonedDateTime.toInstant().toEpochMilli()/30 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/30, z.offsetDateTime.toInstant().toEpochMilli()/30 );
|
||||
}
|
||||
else {
|
||||
assertEquals( nowZoned.toInstant(), z.zonedDateTime.toInstant() );
|
||||
|
|
|
@ -38,8 +38,8 @@ public class ColumnZonedTest {
|
|||
Zoned z = s.find(Zoned.class, id);
|
||||
if ( scope.getSessionFactory().getJdbcServices().getDialect() instanceof SybaseDialect) {
|
||||
// Sybase with jTDS driver has 1/300th sec precision
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/10, z.zonedDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/10, z.offsetDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/30, z.zonedDateTime.toInstant().toEpochMilli()/30 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/30, z.offsetDateTime.toInstant().toEpochMilli()/30 );
|
||||
}
|
||||
else {
|
||||
assertEquals( nowZoned.toInstant(), z.zonedDateTime.toInstant() );
|
||||
|
|
|
@ -35,8 +35,8 @@ public class DefaultZonedTest {
|
|||
Zoned z = s.find(Zoned.class, id);
|
||||
if ( scope.getSessionFactory().getJdbcServices().getDialect() instanceof SybaseDialect) {
|
||||
// Sybase with jTDS driver has 1/300th sec precision
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/10, z.zonedDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/10, z.offsetDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/30, z.zonedDateTime.toInstant().toEpochMilli()/30 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/30, z.offsetDateTime.toInstant().toEpochMilli()/30 );
|
||||
}
|
||||
else {
|
||||
assertEquals( nowZoned.toInstant(), z.zonedDateTime.toInstant() );
|
||||
|
|
|
@ -38,8 +38,8 @@ public class NormalizedZonedTest {
|
|||
Zoned z = s.find(Zoned.class, id);
|
||||
if ( scope.getSessionFactory().getJdbcServices().getDialect() instanceof SybaseDialect) {
|
||||
// Sybase with jTDS driver has 1/300th sec precision
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/10, z.zonedDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/10, z.offsetDateTime.toInstant().toEpochMilli()/10 );
|
||||
assertEquals( nowZoned.toInstant().toEpochMilli()/30, z.zonedDateTime.toInstant().toEpochMilli()/30 );
|
||||
assertEquals( nowOffset.toInstant().toEpochMilli()/30, z.offsetDateTime.toInstant().toEpochMilli()/30 );
|
||||
}
|
||||
else {
|
||||
assertEquals( nowZoned.toInstant(), z.zonedDateTime.toInstant() );
|
||||
|
|
Loading…
Reference in New Issue