1313import org .hibernate .metamodel .model .domain .EntityDomainType ;
1414import org .hibernate .testing .orm .junit .JiraKey ;
1515import org .junit .Assert ;
16- import org .junit .Ignore ;
1716import org .junit .Test ;
1817
1918public 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