From 33a3ff2994d8412ef3c3d68ebe8af5574d05d597 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Fri, 30 Jun 2023 10:34:20 +0200 Subject: [PATCH] Switch to correct skip-dialect annotation for Cockroach test-skipping --- .../test/locking/OptimisticAndPessimisticLockTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/locking/OptimisticAndPessimisticLockTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/locking/OptimisticAndPessimisticLockTest.java index 3c45438a3a..62763467a4 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/locking/OptimisticAndPessimisticLockTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/locking/OptimisticAndPessimisticLockTest.java @@ -7,11 +7,11 @@ import java.util.stream.Stream; import org.hibernate.LockMode; import org.hibernate.dialect.CockroachDialect; -import org.hibernate.testing.SkipForDialect; -import org.hibernate.testing.TestForIssue; import org.hibernate.testing.orm.junit.DomainModel; +import org.hibernate.testing.orm.junit.JiraKey; import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactoryScope; +import org.hibernate.testing.orm.junit.SkipForDialect; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -24,8 +24,8 @@ import jakarta.persistence.Version; OptimisticAndPessimisticLockTest.EntityA.class }) @SessionFactory -@TestForIssue(jiraKey = "HHH-16461") -@SkipForDialect(value = CockroachDialect.class, comment = "CockroachDB uses SERIALIZABLE isolation, and does not support this") +@JiraKey("HHH-16461") +@SkipForDialect(dialectClass = CockroachDialect.class, reason = "CockroachDB uses SERIALIZABLE isolation, and does not support this") public class OptimisticAndPessimisticLockTest { public Stream pessimisticLockModes() {