HHH-13559 : Skip failing tests on Sybase

This commit is contained in:
Gail Badner 2019-08-09 18:52:16 -07:00
parent cb51b1e838
commit fdca4b2854
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.Session;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction; import org.hibernate.annotations.OnDeleteAction;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase; import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.junit.Test; import org.junit.Test;
@ -18,6 +20,11 @@ import org.junit.Test;
public class ToOneOnDeleteTest extends BaseNonConfigCoreFunctionalTestCase { public class ToOneOnDeleteTest extends BaseNonConfigCoreFunctionalTestCase {
@Test @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 { public void testManyToOne() throws Exception {
Session session = openSession(); Session session = openSession();
session.getTransaction().begin(); session.getTransaction().begin();

View File

@ -7,7 +7,9 @@
package org.hibernate.test.ondelete.toone.hbm; package org.hibernate.test.ondelete.toone.hbm;
import org.hibernate.Session; import org.hibernate.Session;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Test; import org.junit.Test;
@ -17,6 +19,11 @@ import org.junit.Test;
public class ToOneOnDeleteHbmTest extends BaseCoreFunctionalTestCase { public class ToOneOnDeleteHbmTest extends BaseCoreFunctionalTestCase {
@Test @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 { public void testManyToOne() throws Exception {
Session session = openSession(); Session session = openSession();
session.getTransaction().begin(); session.getTransaction().begin();