Skip to content

Commit b9514aa

Browse files
committed
[#1550] Disable BasicTypesAndCallbacksForAllDBsTest for Db2
Tests throw exception: ``` Parameter at position[0] with class = [io.vertx.core.buffer.impl.BufferImpl] and value = [>Eg�BӤVUfBD] can not be coerced to the expected class = [io.netty.buffer.ByteBuf] for encoding. ``` See eclipse-vertx/vertx-sql-client#1304
1 parent 25c0c18 commit b9514aa

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/UUIDAsBinaryType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@
2222
import io.vertx.ext.unit.TestContext;
2323

2424
import static java.util.Arrays.asList;
25+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
2526
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.MARIA;
2627
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.MYSQL;
2728
import static org.hibernate.reactive.testing.DatabaseSelectionRule.runOnlyFor;
2829
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
2930

3031
public abstract class UUIDAsBinaryType extends BaseReactiveTest {
3132

33+
//Db2: testUUIDType throws NoStackTraceThrowable: parameter of type BufferImpl cannot be coerced to ByteBuf
34+
@Rule
35+
public final DatabaseSelectionRule skip = DatabaseSelectionRule.skipTestsFor( DB2 );
36+
3237
public static class ForMySQLandMariaDBTest extends UUIDAsBinaryType {
3338
// There's an issue querying for Binary types if the size of the column is different from
3439
// the size of the parameter: see https://github.com/hibernate/hibernate-reactive/issues/678

hibernate-reactive-core/src/test/java/org/hibernate/reactive/types/BasicTypesAndCallbacksForAllDBsTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
import org.hibernate.annotations.Type;
3131
import org.hibernate.reactive.BaseReactiveTest;
32+
import org.hibernate.reactive.testing.DatabaseSelectionRule;
3233

3334
import org.junit.Ignore;
35+
import org.junit.Rule;
3436
import org.junit.Test;
3537

3638
import io.vertx.ext.unit.TestContext;
@@ -59,11 +61,17 @@
5961
import jakarta.persistence.Transient;
6062
import jakarta.persistence.Version;
6163

64+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
65+
6266
/**
6367
* Test all the types and lifecycle callbacks that we expect to work on all supported DBs
6468
*/
6569
public class BasicTypesAndCallbacksForAllDBsTest extends BaseReactiveTest {
6670

71+
//Db2: testUUIDType throws NoStackTraceThrowable: parameter of type BufferImpl cannot be coerced to ByteBuf
72+
@Rule
73+
public final DatabaseSelectionRule skip = DatabaseSelectionRule.skipTestsFor( DB2 );
74+
6775
@Override
6876
protected Set<Class<?>> annotatedEntities() {
6977
return Set.of( Basic.class );

0 commit comments

Comments
 (0)