mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 12:44:49 +00:00
Merge branch 'HHH-8897-replace-metamodel'
This commit is contained in:
commit
e0d118d8c6
@ -10,6 +10,7 @@
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
@ -24,6 +25,7 @@ protected Class<?>[] getAnnotatedClasses() {
|
||||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void initData() {
|
||||
// Revision 1
|
||||
Session session = openSession();
|
||||
@ -52,6 +54,7 @@ public void initData() {
|
||||
}
|
||||
|
||||
@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 void testRevisionsCountOfGivenIdStrEntity() {
|
||||
}
|
||||
|
||||
@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.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
@ -25,6 +26,7 @@ protected Class<?>[] getAnnotatedClasses() {
|
||||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void initData() {
|
||||
// Revision 1
|
||||
getSession().getTransaction().begin();
|
||||
@ -37,6 +39,7 @@ public void initData() {
|
||||
|
||||
@Test
|
||||
@TestForIssue(jiraKey = "HHH-4760")
|
||||
@FailureExpectedWithNewMetamodel
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testQueryingWithProxyObject() {
|
||||
StrTestEntity originalSte = new StrTestEntity( "data", id );
|
||||
|
@ -11,6 +11,7 @@
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
@ -32,6 +33,7 @@ protected boolean createSchema() {
|
||||
|
||||
@Test
|
||||
@Priority(10)
|
||||
@FailureExpectedWithNewMetamodel
|
||||
public void testSchemaCreation() {
|
||||
// Generate complete schema.
|
||||
new EnversSchemaGenerator( configuration() ).export().create( true, true );
|
||||
@ -48,6 +50,7 @@ public void testSchemaCreation() {
|
||||
|
||||
@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…
x
Reference in New Issue
Block a user