HHH-13569 : org.hibernate.test.annotations.embedded.EmbeddedTest failures on Sybase
(cherry picked from commit 937d4a3503
)
This commit is contained in:
parent
68e89ba0dd
commit
9b1c21444c
|
@ -18,8 +18,10 @@ import org.hibernate.Session;
|
|||
import org.hibernate.Transaction;
|
||||
import org.hibernate.boot.MetadataBuilder;
|
||||
import org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl;
|
||||
import org.hibernate.dialect.SybaseDialect;
|
||||
|
||||
import org.hibernate.testing.FailureExpected;
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
|
||||
import org.hibernate.testing.transaction.TransactionUtil;
|
||||
|
@ -27,6 +29,7 @@ import org.hibernate.test.annotations.embedded.FloatLeg.RateIndex;
|
|||
import org.hibernate.test.annotations.embedded.Leg.Frequency;
|
||||
import org.hibernate.test.util.SchemaUtil;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
@ -39,6 +42,16 @@ import static org.junit.Assert.assertTrue;
|
|||
* @author Emmanuel Bernard
|
||||
*/
|
||||
public class EmbeddedTest extends BaseNonConfigCoreFunctionalTestCase {
|
||||
|
||||
@After
|
||||
public void cleanup() {
|
||||
TransactionUtil.doInHibernate( this::sessionFactory, session ->{
|
||||
for ( Person person : session.createQuery( "from Person", Person.class ).getResultList() ) {
|
||||
session.delete( person );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSimple() throws Exception {
|
||||
Person person = new Person();
|
||||
|
@ -145,6 +158,7 @@ public class EmbeddedTest extends BaseNonConfigCoreFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@TestForIssue(jiraKey = "HHH-8172")
|
||||
@SkipForDialect( value = SybaseDialect.class, comment = "skip for Sybase because (null = null) evaluates to true")
|
||||
@FailureExpected(jiraKey = "HHH-8172")
|
||||
public void testQueryWithEmbeddedParameterOneNull() throws Exception {
|
||||
Person person = new Person();
|
||||
|
|
Loading…
Reference in New Issue