File tree Expand file tree Collapse file tree 1 file changed +3
-44
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/java Expand file tree Collapse file tree 1 file changed +3
-44
lines changed Original file line number Diff line number Diff line change 4848import static org .junit .jupiter .api .Assertions .assertInstanceOf ;
4949import static org .junit .jupiter .api .Assertions .assertThrows ;
5050
51+ @ SessionFactory
5152public 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
You can’t perform that action at this time.
0 commit comments