HHH-13570 : Test failures due to Sybase not supporting UPDATE statement with WITH(NOWAIT)

(cherry picked from commit ce03ef96b9)
This commit is contained in:
Gail Badner 2019-08-13 23:37:47 -07:00
parent eb85932c42
commit ada9f901e9
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,8 @@ import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.dialect.SybaseDialect; import org.hibernate.dialect.SybaseDialect;
import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
@ -60,6 +62,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
protected boolean isCleanupTestDataRequired(){return true;} protected boolean isCleanupTestDataRequired(){return true;}
@Test @Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
@SuppressWarnings( {"deprecation"}) @SuppressWarnings( {"deprecation"})
public void testLoading() { public void testLoading() {
// open a session, begin a transaction and lock row // open a session, begin a transaction and lock row
@ -75,6 +78,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
} }
@Test @Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testLegacyCriteria() { public void testLegacyCriteria() {
// open a session, begin a transaction and lock row // open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> { doInHibernate( this::sessionFactory, session -> {
@ -92,6 +96,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
} }
@Test @Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testLegacyCriteriaAliasSpecific() { public void testLegacyCriteriaAliasSpecific() {
// open a session, begin a transaction and lock row // open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> { doInHibernate( this::sessionFactory, session -> {
@ -108,6 +113,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
} }
@Test @Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testQuery() { public void testQuery() {
// open a session, begin a transaction and lock row // open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> { doInHibernate( this::sessionFactory, session -> {