Skip to content

Commit 6fe4eac

Browse files
committed
fix Envers test after change to Dates
1 parent d001986 commit 6fe4eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/RevisionEndTimestampTypeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.hibernate.type.BasicType;
2121
import org.junit.jupiter.api.Test;
2222

23-
import java.sql.Timestamp;
23+
import java.util.Date;
2424

2525
import static org.junit.jupiter.api.Assertions.assertEquals;
2626
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
@@ -46,6 +46,6 @@ public void testRevisionEndTimestampIsLongType(DomainModelScope scope) {
4646

4747
final Property property = clazz.getProperty("REVEND_TSTMP");
4848
assertInstanceOf(BasicType.class, property.getType());
49-
assertEquals(Timestamp.class, ((BasicType) property.getType()).getJavaType());
49+
assertEquals(Date.class, ((BasicType<?>) property.getType()).getJavaType());
5050
}
5151
}

0 commit comments

Comments
 (0)