Skip to content

Commit 20e35b7

Browse files
cigalymbellade
andauthored
HHH-18532 - Update hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/java/DateSubclassesUnwrapTest.java
Co-authored-by: Marco Belladelli <[email protected]>
1 parent aa10273 commit 20e35b7

File tree

1 file changed

+3
-44
lines changed

1 file changed

+3
-44
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/java/DateSubclassesUnwrapTest.java

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -48,52 +48,11 @@
4848
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
4949
import static org.junit.jupiter.api.Assertions.assertThrows;
5050

51+
@SessionFactory
5152
public class DateSubclassesUnwrapTest {
52-
53-
private static final WrapperOptions wrapperOptions = new WrapperOptions() {
54-
@Override
55-
public SharedSessionContractImplementor getSession() {
56-
return null;
57-
}
58-
59-
@Override
60-
public SessionFactoryImplementor getSessionFactory() {
61-
return null;
62-
}
63-
64-
public boolean useStreamForLobBinding() {
65-
return false;
66-
}
67-
68-
@Override
69-
public int getPreferredSqlTypeCodeForBoolean() {
70-
return 0;
71-
}
72-
73-
public LobCreator getLobCreator() {
74-
return NonContextualLobCreator.INSTANCE;
75-
}
76-
77-
@Override
78-
public TimeZone getJdbcTimeZone() {
79-
return null;
80-
}
81-
82-
private final Dialect dialect = new H2Dialect() {
83-
@Override
84-
public boolean useConnectionToCreateLob() {
85-
return false;
86-
}
87-
};
88-
89-
@Override
90-
public Dialect getDialect() {
91-
return dialect;
92-
}
93-
};
94-
9553
@Test
96-
void testJdbcTimestampJavaType() {
54+
void testJdbcTimestampJavaType(SessionFactoryScope scope) {
55+
final WrapperOptions wrapperOptions = scope.getSessionFactory().getWrapperOptions();
9756
final JdbcTimestampJavaType javaType = JdbcTimestampJavaType.INSTANCE;
9857
final Date date = new Date();
9958

0 commit comments

Comments
 (0)