From b84ec25b63fa9a8d0f3c4465f98754ceb97f1914 Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 2 Jun 2011 16:59:47 +0200 Subject: [PATCH] HHH-6020: marking the failing method as @FailureExpected, enabling the tests in the build --- hibernate-envers/hibernate-envers.gradle | 5 ----- .../envers/test/integration/jta/JtaExceptionListener.java | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hibernate-envers/hibernate-envers.gradle b/hibernate-envers/hibernate-envers.gradle index 2208f54e86..34d2bb000e 100644 --- a/hibernate-envers/hibernate-envers.gradle +++ b/hibernate-envers/hibernate-envers.gradle @@ -28,9 +28,4 @@ sourceSets { setSrcDirs( ['src/test/java','src/test/resources'] ) } } -} - -// temporary -test { - ignoreFailures = true } \ No newline at end of file diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/jta/JtaExceptionListener.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/jta/JtaExceptionListener.java index 1a030500a9..4bcf44b29f 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/jta/JtaExceptionListener.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/jta/JtaExceptionListener.java @@ -29,6 +29,7 @@ import org.hibernate.envers.test.EnversTestingJtaBootstrap; import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.entities.StrTestEntity; import org.hibernate.envers.test.integration.reventity.ExceptionListenerRevEntity; +import org.hibernate.testing.FailureExpected; import org.junit.Test; import javax.persistence.EntityManager; @@ -50,7 +51,7 @@ public class JtaExceptionListener extends AbstractEntityTest { cfg.addAnnotatedClass(ExceptionListenerRevEntity.class); } - @Override + @Override public void addConfigurationProperties(Properties configuration) { super.addConfigurationProperties(configuration); tm = EnversTestingJtaBootstrap.updateConfigAndCreateTM(configuration); @@ -74,6 +75,7 @@ public class JtaExceptionListener extends AbstractEntityTest { } @Test + @FailureExpected(jiraKey = "HHH-6020") public void testDataNotPersisted() throws Exception { tm.begin();