HHH-13266 Skip some tests that apparently trigger bugs in HANA
This commit is contained in:
parent
ccb6a9ab50
commit
b328544dc5
|
@ -21,10 +21,12 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
import org.hibernate.dialect.AbstractHANADialect;
|
||||
import org.hibernate.dialect.MariaDBDialect;
|
||||
import org.hibernate.dialect.MySQLDialect;
|
||||
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
|
||||
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.junit.runners.Parameterized;
|
||||
|
||||
|
@ -32,6 +34,7 @@ import org.junit.runners.Parameterized;
|
|||
* Tests for storage of LocalDate properties.
|
||||
*/
|
||||
@TestForIssue(jiraKey = "HHH-10371")
|
||||
@SkipForDialect(value = AbstractHANADialect.class, comment = "HANA systematically returns the wrong date when the JVM default timezone is not UTC")
|
||||
public class LocalDateTest extends AbstractJavaTimeTypeTest<LocalDate, LocalDateTest.EntityWithLocalDate> {
|
||||
|
||||
private static class ParametersBuilder extends AbstractParametersBuilder<ParametersBuilder> {
|
||||
|
|
|
@ -21,10 +21,13 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
import org.hibernate.dialect.AbstractHANADialect;
|
||||
import org.hibernate.dialect.MariaDBDialect;
|
||||
import org.hibernate.dialect.MySQLDialect;
|
||||
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
|
||||
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.junit.Test;
|
||||
import org.junit.runners.Parameterized;
|
||||
|
||||
/**
|
||||
|
@ -167,6 +170,13 @@ public class LocalTimeTest extends AbstractJavaTimeTypeTest<LocalTime, LocalTime
|
|||
return resultSet.getTimestamp( columnIndex );
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@SkipForDialect(value = AbstractHANADialect.class, comment = "HANA seems to return a java.sql.Timestamp instead of a java.sql.Time")
|
||||
public void writeThenNativeRead() {
|
||||
super.writeThenNativeRead();
|
||||
}
|
||||
|
||||
@Entity(name = ENTITY_NAME)
|
||||
static final class EntityWithLocalTime {
|
||||
@Id
|
||||
|
|
|
@ -23,11 +23,14 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
import org.hibernate.dialect.AbstractHANADialect;
|
||||
import org.hibernate.dialect.MariaDBDialect;
|
||||
import org.hibernate.dialect.MySQLDialect;
|
||||
import org.hibernate.type.descriptor.sql.BigIntTypeDescriptor;
|
||||
import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor;
|
||||
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.junit.Test;
|
||||
import org.junit.runners.Parameterized;
|
||||
|
||||
/**
|
||||
|
@ -178,6 +181,13 @@ public class OffsetTimeTest extends AbstractJavaTimeTypeTest<OffsetTime, OffsetT
|
|||
return resultSet.getTimestamp( columnIndex );
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@SkipForDialect(value = AbstractHANADialect.class, comment = "HANA seems to return a java.sql.Timestamp instead of a java.sql.Time")
|
||||
public void writeThenNativeRead() {
|
||||
super.writeThenNativeRead();
|
||||
}
|
||||
|
||||
@Entity(name = ENTITY_NAME)
|
||||
static final class EntityWithOffsetTime {
|
||||
@Id
|
||||
|
|
Loading…
Reference in New Issue