Skip to content

Commit

Permalink
HHH-7470 Removing obsolete @FailureExpectedWithNewMetamodel
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Jul 26, 2012
1 parent 1d53de8 commit 952d8b2
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -23,14 +23,15 @@
*/
package org.hibernate.test.c3p0;

import java.util.List;

import org.junit.Assert;
import org.junit.Test;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.hibernate.testing.TestForIssue;
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.
Expand All @@ -40,8 +41,7 @@
public class StatementCacheTest extends BaseCoreFunctionalTestCase {

@Test
@TestForIssue( jiraKey = "HHH-7193" )
@FailureExpectedWithNewMetamodel
@TestForIssue(jiraKey = "HHH-7193")
public void testStatementCaching() {
Session session = openSession();
session.beginTransaction();
Expand All @@ -57,7 +57,7 @@ public void testStatementCaching() {
session.flush();
Assert.fail( "Validation exception did not occur" );
}
catch (Exception e) {
catch ( Exception e ) {
//this is expected roll the transaction back
session.getTransaction().rollback();
}
Expand Down Expand Up @@ -87,6 +87,6 @@ public void testStatementCaching() {

@Override
protected Class<?>[] getAnnotatedClasses() {
return new Class[]{ IrrelevantEntity.class };
return new Class[] { IrrelevantEntity.class };
}
}

0 comments on commit 952d8b2

Please sign in to comment.