Re-enable all community dialect tests

This commit is contained in:
Christian Beikov 2021-12-14 10:12:39 +01:00
parent c4e7e2b3fe
commit 09d859fd3c
2 changed files with 8 additions and 2 deletions

View File

@ -15,3 +15,7 @@ dependencies {
testImplementation project( ':hibernate-testing' ) testImplementation project( ':hibernate-testing' )
testImplementation project( path: ':hibernate-core', configuration: 'tests' ) testImplementation project( path: ':hibernate-core', configuration: 'tests' )
} }
test {
include '**/**'
}

View File

@ -20,6 +20,8 @@ import org.hibernate.service.ServiceRegistry;
import org.hibernate.sql.ast.spi.SqlAppender; import org.hibernate.sql.ast.spi.SqlAppender;
import org.hibernate.type.BasicType; import org.hibernate.type.BasicType;
import org.hibernate.type.descriptor.java.DateJavaTypeDescriptor; import org.hibernate.type.descriptor.java.DateJavaTypeDescriptor;
import org.hibernate.type.descriptor.java.JdbcDateJavaTypeDescriptor;
import org.hibernate.type.descriptor.java.JdbcTimestampJavaTypeDescriptor;
import org.hibernate.type.descriptor.jdbc.DateJdbcType; import org.hibernate.type.descriptor.jdbc.DateJdbcType;
import org.hibernate.type.descriptor.jdbc.TimestampJdbcType; import org.hibernate.type.descriptor.jdbc.TimestampJdbcType;
import org.hibernate.type.spi.TypeConfiguration; import org.hibernate.type.spi.TypeConfiguration;
@ -92,7 +94,7 @@ public class InformixDialectTestCase extends BaseUnitTestCase {
new TypeConfiguration() new TypeConfiguration()
); );
BasicType<?> basicType = (BasicType<?>) sqmExpression.getNodeType(); BasicType<?> basicType = (BasicType<?>) sqmExpression.getNodeType();
assertEquals( DateJavaTypeDescriptor.INSTANCE, basicType.getJavaTypeDescriptor() ); assertEquals( JdbcTimestampJavaTypeDescriptor.INSTANCE, basicType.getJavaTypeDescriptor() );
assertEquals( TimestampJdbcType.INSTANCE, basicType.getJdbcTypeDescriptor() ); assertEquals( TimestampJdbcType.INSTANCE, basicType.getJdbcTypeDescriptor() );
SqlAppender appender = new StringBuilderSqlAppender(); SqlAppender appender = new StringBuilderSqlAppender();
@ -111,7 +113,7 @@ public class InformixDialectTestCase extends BaseUnitTestCase {
new TypeConfiguration() new TypeConfiguration()
); );
BasicType<?> basicType = (BasicType<?>) sqmExpression.getNodeType(); BasicType<?> basicType = (BasicType<?>) sqmExpression.getNodeType();
assertEquals( DateJavaTypeDescriptor.INSTANCE, basicType.getJavaTypeDescriptor() ); assertEquals( JdbcDateJavaTypeDescriptor.INSTANCE, basicType.getJavaTypeDescriptor() );
assertEquals( DateJdbcType.INSTANCE, basicType.getJdbcTypeDescriptor() ); assertEquals( DateJdbcType.INSTANCE, basicType.getJdbcTypeDescriptor() );
SqlAppender appender = new StringBuilderSqlAppender(); SqlAppender appender = new StringBuilderSqlAppender();