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) {
|
||||
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());
|
||||
|
||||
configValues.remove(Environment.URL);
|
||||
|
|
|
@ -75,7 +75,6 @@ public class JtaExceptionListener extends AbstractEntityTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpected(jiraKey = "HHH-6020")
|
||||
public void testDataNotPersisted() throws Exception {
|
||||
tm.begin();
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ import org.hibernate.envers.test.AbstractEntityTest;
|
|||
import org.hibernate.envers.test.EnversTestingJtaBootstrap;
|
||||
import org.hibernate.envers.test.Priority;
|
||||
import org.hibernate.envers.test.entities.IntTestEntity;
|
||||
import org.hibernate.testing.FailureExpected;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import javax.persistence.EntityManager;
|
||||
|
@ -34,6 +36,7 @@ public class JtaTransaction extends AbstractEntityTest {
|
|||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpected(jiraKey = "HHH-6624")
|
||||
public void initData() throws Exception {
|
||||
tm.begin();
|
||||
|
||||
|
@ -64,11 +67,13 @@ public class JtaTransaction extends AbstractEntityTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpected(jiraKey = "HHH-6624")
|
||||
public void testRevisionsCounts() throws Exception {
|
||||
assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(IntTestEntity.class, id1));
|
||||
}
|
||||
|
||||
@Test
|
||||
@FailureExpected(jiraKey = "HHH-6624")
|
||||
public void testHistoryOfId1() {
|
||||
IntTestEntity ver1 = new IntTestEntity(10, id1);
|
||||
IntTestEntity ver2 = new IntTestEntity(20, id1);
|
||||
|
|
Loading…
Reference in New Issue