HHH-8897 : Add @FailureExpectedWithNewMetamodel for integration failures
This commit is contained in:
parent
4c6764d1cf
commit
cba82f2968
|
@ -10,6 +10,7 @@ import org.hibernate.envers.test.entities.StrTestEntity;
|
|||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
|
@ -24,6 +25,7 @@ public class AddDelTest extends BaseEnversFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void initData() {
|
||||
// Revision 1
|
||||
Session session = openSession();
|
||||
|
@ -52,6 +54,7 @@ public class AddDelTest extends BaseEnversFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testRevisionsCountOfGivenIdStrEntity() {
|
||||
// Revision 2 has not changed entity's state.
|
||||
Assert.assertEquals( Arrays.asList( 1, 3 ), getAuditReader().getRevisions( GivenIdStrEntity.class, 1 ) );
|
||||
|
@ -60,6 +63,7 @@ public class AddDelTest extends BaseEnversFunctionalTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testHistoryOfGivenIdStrEntity() {
|
||||
Assert.assertEquals( new GivenIdStrEntity( 1, "data" ), getAuditReader().find( GivenIdStrEntity.class, 1, 1 ) );
|
||||
Assert.assertEquals(
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.hibernate.envers.test.entities.StrTestEntity;
|
|||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
|
@ -25,6 +26,7 @@ public class QueryingWithProxyObjectTest extends BaseEnversFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void initData() {
|
||||
// Revision 1
|
||||
getSession().getTransaction().begin();
|
||||
|
@ -37,6 +39,7 @@ public class QueryingWithProxyObjectTest extends BaseEnversFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@TestForIssue(jiraKey = "HHH-4760")
|
||||
@FailureExpectedWithNewMetamodel
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testQueryingWithProxyObject() {
|
||||
StrTestEntity originalSte = new StrTestEntity( "data", id );
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.hibernate.envers.tools.hbm2ddl.EnversSchemaGenerator;
|
|||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
|
@ -32,6 +33,7 @@ public class SchemaExportTest extends BaseEnversFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testSchemaCreation() {
|
||||
// Generate complete schema.
|
||||
new EnversSchemaGenerator( configuration() ).export().create( true, true );
|
||||
|
@ -48,6 +50,7 @@ public class SchemaExportTest extends BaseEnversFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@Priority(9)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testAuditDataRetrieval() {
|
||||
Assert.assertEquals( Arrays.asList( 1 ), getAuditReader().getRevisions( StrTestEntity.class, id ) );
|
||||
Assert.assertEquals( new StrTestEntity( "data", id ), getAuditReader().find( StrTestEntity.class, id, 1 ) );
|
||||
|
|
Loading…
Reference in New Issue