HHH-6020: marking the failing method as @FailureExpected, enabling the tests in the build
This commit is contained in:
parent
8d558505c0
commit
b84ec25b63
|
@ -28,9 +28,4 @@ sourceSets {
|
||||||
setSrcDirs( ['src/test/java','src/test/resources'] )
|
setSrcDirs( ['src/test/java','src/test/resources'] )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// temporary
|
|
||||||
test {
|
|
||||||
ignoreFailures = true
|
|
||||||
}
|
}
|
|
@ -29,6 +29,7 @@ import org.hibernate.envers.test.EnversTestingJtaBootstrap;
|
||||||
import org.hibernate.envers.test.Priority;
|
import org.hibernate.envers.test.Priority;
|
||||||
import org.hibernate.envers.test.entities.StrTestEntity;
|
import org.hibernate.envers.test.entities.StrTestEntity;
|
||||||
import org.hibernate.envers.test.integration.reventity.ExceptionListenerRevEntity;
|
import org.hibernate.envers.test.integration.reventity.ExceptionListenerRevEntity;
|
||||||
|
import org.hibernate.testing.FailureExpected;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
@ -50,7 +51,7 @@ public class JtaExceptionListener extends AbstractEntityTest {
|
||||||
cfg.addAnnotatedClass(ExceptionListenerRevEntity.class);
|
cfg.addAnnotatedClass(ExceptionListenerRevEntity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addConfigurationProperties(Properties configuration) {
|
public void addConfigurationProperties(Properties configuration) {
|
||||||
super.addConfigurationProperties(configuration);
|
super.addConfigurationProperties(configuration);
|
||||||
tm = EnversTestingJtaBootstrap.updateConfigAndCreateTM(configuration);
|
tm = EnversTestingJtaBootstrap.updateConfigAndCreateTM(configuration);
|
||||||
|
@ -74,6 +75,7 @@ public class JtaExceptionListener extends AbstractEntityTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@FailureExpected(jiraKey = "HHH-6020")
|
||||||
public void testDataNotPersisted() throws Exception {
|
public void testDataNotPersisted() throws Exception {
|
||||||
tm.begin();
|
tm.begin();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue