|
1 | 1 | /*
|
2 |
| - * Hibernate, Relational Persistence for Idiomatic Java |
3 |
| - * |
4 |
| - * License: GNU Lesser General Public License (LGPL), version 2.1 or later |
5 |
| - * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html |
| 2 | + * SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 | + * Copyright Red Hat Inc. and Hibernate Authors |
6 | 4 | */
|
7 | 5 | package org.hibernate.orm.test.mapping.type.java;
|
8 | 6 |
|
|
17 | 15 | import java.time.ZonedDateTime;
|
18 | 16 | import java.util.Calendar;
|
19 | 17 | import java.util.Date;
|
20 |
| -import java.util.TimeZone; |
21 | 18 |
|
22 | 19 | import org.hibernate.HibernateException;
|
23 |
| -import org.hibernate.dialect.Dialect; |
24 |
| -import org.hibernate.dialect.H2Dialect; |
25 |
| -import org.hibernate.engine.jdbc.LobCreator; |
26 |
| -import org.hibernate.engine.jdbc.NonContextualLobCreator; |
27 |
| -import org.hibernate.engine.spi.SessionFactoryImplementor; |
28 |
| -import org.hibernate.engine.spi.SharedSessionContractImplementor; |
29 | 20 | import org.hibernate.type.descriptor.WrapperOptions;
|
30 | 21 | import org.hibernate.type.descriptor.java.CalendarDateJavaType;
|
31 | 22 | import org.hibernate.type.descriptor.java.CalendarJavaType;
|
@@ -173,7 +164,7 @@ void testOffsetTimeJavaType(SessionFactoryScope scope) {
|
173 | 164 |
|
174 | 165 | assertInstanceOf( Timestamp.class, javaType.unwrap( time, Timestamp.class, wrapperOptions ) );
|
175 | 166 | assertThrows( IllegalArgumentException.class,
|
176 |
| - () -> javaType.unwrap( time, java.sql.Date.class, wrapperOptions ) ); |
| 167 | + () -> javaType.unwrap( time, java.sql.Date.class, wrapperOptions ) ); |
177 | 168 | assertInstanceOf( Time.class, javaType.unwrap( time, Time.class, wrapperOptions ) );
|
178 | 169 | assertInstanceOf( Date.class, javaType.unwrap( time, Date.class, wrapperOptions ) );
|
179 | 170 | }
|
|
0 commit comments