HHH-6020 : Move to JBossTS caused some test failures in hibernate-envers
This commit is contained in:
parent
938c4a870c
commit
25acc5078e
|
@ -43,7 +43,7 @@ public class EnversTestingJtaBootstrap {
|
||||||
catch (SQLException e) {
|
catch (SQLException e) {
|
||||||
throw new RuntimeException( "Unable to set DataSource JDBC driver name", e );
|
throw new RuntimeException( "Unable to set DataSource JDBC driver name", e );
|
||||||
}
|
}
|
||||||
dataSource.setUrl(configValues.get(Environment.URL).toString());
|
dataSource.setUrl(configValues.get(Environment.URL).toString() + ";AUTOCOMMIT=OFF");
|
||||||
dataSource.setUser(configValues.get(Environment.USER).toString());
|
dataSource.setUser(configValues.get(Environment.USER).toString());
|
||||||
|
|
||||||
configValues.remove(Environment.URL);
|
configValues.remove(Environment.URL);
|
||||||
|
|
|
@ -75,7 +75,6 @@ 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();
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ import org.hibernate.envers.test.AbstractEntityTest;
|
||||||
import org.hibernate.envers.test.EnversTestingJtaBootstrap;
|
import org.hibernate.envers.test.EnversTestingJtaBootstrap;
|
||||||
import org.hibernate.envers.test.Priority;
|
import org.hibernate.envers.test.Priority;
|
||||||
import org.hibernate.envers.test.entities.IntTestEntity;
|
import org.hibernate.envers.test.entities.IntTestEntity;
|
||||||
|
import org.hibernate.testing.FailureExpected;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
@ -34,6 +36,7 @@ public class JtaTransaction extends AbstractEntityTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Priority(10)
|
@Priority(10)
|
||||||
|
@FailureExpected(jiraKey = "HHH-6624")
|
||||||
public void initData() throws Exception {
|
public void initData() throws Exception {
|
||||||
tm.begin();
|
tm.begin();
|
||||||
|
|
||||||
|
@ -64,11 +67,13 @@ public class JtaTransaction extends AbstractEntityTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@FailureExpected(jiraKey = "HHH-6624")
|
||||||
public void testRevisionsCounts() throws Exception {
|
public void testRevisionsCounts() throws Exception {
|
||||||
assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(IntTestEntity.class, id1));
|
assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(IntTestEntity.class, id1));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@FailureExpected(jiraKey = "HHH-6624")
|
||||||
public void testHistoryOfId1() {
|
public void testHistoryOfId1() {
|
||||||
IntTestEntity ver1 = new IntTestEntity(10, id1);
|
IntTestEntity ver1 = new IntTestEntity(10, id1);
|
||||||
IntTestEntity ver2 = new IntTestEntity(20, id1);
|
IntTestEntity ver2 = new IntTestEntity(20, id1);
|
||||||
|
|
Loading…
Reference in New Issue