HHH-6020 : Move to JBossTS caused some test failures in hibernate-envers

This commit is contained in:
Gail Badner 2011-08-31 14:24:20 -07:00
parent 938c4a870c
commit 25acc5078e
3 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -75,7 +75,6 @@ public class JtaExceptionListener extends AbstractEntityTest {
}
@Test
@FailureExpected(jiraKey = "HHH-6020")
public void testDataNotPersisted() throws Exception {
tm.begin();

View File

@ -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);