HHH-7470 Removing obsolete @FailureExpectedWithNewMetamodel
This commit is contained in:
parent
1d53de8262
commit
952d8b230b
|
@ -23,14 +23,15 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.c3p0;
|
package org.hibernate.test.c3p0;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
import org.junit.*;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that when using cached prepared statement with batching enabled doesn't bleed over into new transactions.
|
* Tests that when using cached prepared statement with batching enabled doesn't bleed over into new transactions.
|
||||||
|
@ -40,8 +41,7 @@ import java.util.List;
|
||||||
public class StatementCacheTest extends BaseCoreFunctionalTestCase {
|
public class StatementCacheTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestForIssue( jiraKey = "HHH-7193" )
|
@TestForIssue(jiraKey = "HHH-7193")
|
||||||
@FailureExpectedWithNewMetamodel
|
|
||||||
public void testStatementCaching() {
|
public void testStatementCaching() {
|
||||||
Session session = openSession();
|
Session session = openSession();
|
||||||
session.beginTransaction();
|
session.beginTransaction();
|
||||||
|
@ -57,7 +57,7 @@ public class StatementCacheTest extends BaseCoreFunctionalTestCase {
|
||||||
session.flush();
|
session.flush();
|
||||||
Assert.fail( "Validation exception did not occur" );
|
Assert.fail( "Validation exception did not occur" );
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch ( Exception e ) {
|
||||||
//this is expected roll the transaction back
|
//this is expected roll the transaction back
|
||||||
session.getTransaction().rollback();
|
session.getTransaction().rollback();
|
||||||
}
|
}
|
||||||
|
@ -87,6 +87,6 @@ public class StatementCacheTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Class<?>[] getAnnotatedClasses() {
|
protected Class<?>[] getAnnotatedClasses() {
|
||||||
return new Class[]{ IrrelevantEntity.class };
|
return new Class[] { IrrelevantEntity.class };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue