Skip to content

Commit c1bfdfe

Browse files
Asanio06dreab8
authored andcommitted
HHH-19009 correction of the inheritance syntax used with GraphParser in EntityGraphsTest tests
1 parent 261d792 commit c1bfdfe

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/graph/EntityGraphsTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.hibernate.metamodel.model.domain.EntityDomainType;
1414
import org.hibernate.testing.orm.junit.JiraKey;
1515
import org.junit.Assert;
16-
import org.junit.Ignore;
1716
import org.junit.Test;
1817

1918
public class EntityGraphsTest extends AbstractEntityGraphTest {
@@ -64,10 +63,9 @@ public void testEqualLinksEqual1() {
6463
}
6564

6665
@Test
67-
@Ignore("Cannot run due to Hibernate bug: https://hibernate.atlassian.net/browse/HHH-10378")
6866
public void testEqualLinksWithSubclassesEqual() {
69-
EntityGraph<GraphParsingTestEntity> a = parseGraph( "linkToOne(name), linkToOne:MockSubentity(description)" );
70-
EntityGraph<GraphParsingTestEntity> b = parseGraph( "linkToOne:MockSubentity(description), linkToOne(name)" );
67+
EntityGraph<GraphParsingTestEntity> a = parseGraph( "linkToOne(name), linkToOne(GraphParsingTestSubentity:description)" );
68+
EntityGraph<GraphParsingTestEntity> b = parseGraph( "linkToOne(GraphParsingTestSubentity:description), linkToOne(name)" );
7169
Assert.assertTrue( EntityGraphs.areEqual( a, b ) );
7270
}
7371

@@ -87,7 +85,7 @@ public void testDifferentLinksEqual2() {
8785

8886
@Test
8987
public void testDifferentLinksEqual3() {
90-
EntityGraph<GraphParsingTestEntity> a = parseGraph( "linkToOne(name), linkToOne:MockSubentity(description)" );
88+
EntityGraph<GraphParsingTestEntity> a = parseGraph( "linkToOne(name), linkToOne(GraphParsingTestSubentity:description)" );
9189
EntityGraph<GraphParsingTestEntity> b = parseGraph( "linkToOne(name, description)" );
9290
Assert.assertFalse( EntityGraphs.areEqual( a, b ) );
9391
}

0 commit comments

Comments
 (0)