HHH-13559 : Skip failing tests on Sybase

(cherry picked from commit fdca4b2854)
This commit is contained in:
Gail Badner 2019-08-09 18:52:16 -07:00
parent 9eab3a80d1
commit 86385bdce3
2 changed files with 14 additions and 0 deletions

View File

@ -8,7 +8,9 @@ import javax.persistence.OneToOne;
import org.hibernate.Session;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.junit.Test;
@ -18,6 +20,11 @@ import org.junit.Test;
public class ToOneOnDeleteTest extends BaseNonConfigCoreFunctionalTestCase {
@Test
@SkipForDialect(
value = SybaseDialect.class,
jiraKey = "HHH-13559",
comment = "on-delete=\"cascade\" is not supported for unidirectional to-one associations using Sybase"
)
public void testManyToOne() throws Exception {
Session session = openSession();
session.getTransaction().begin();

View File

@ -7,7 +7,9 @@
package org.hibernate.test.ondelete.toone.hbm;
import org.hibernate.Session;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Test;
@ -17,6 +19,11 @@ import org.junit.Test;
public class ToOneOnDeleteHbmTest extends BaseCoreFunctionalTestCase {
@Test
@SkipForDialect(
value = SybaseDialect.class,
jiraKey = "HHH-13559",
comment = "on-delete=\"cascade\" is not supported for unidirectional to-one associations using Sybase"
)
public void testManyToOne() throws Exception {
Session session = openSession();
session.getTransaction().begin();