13
13
import org .hibernate .metamodel .model .domain .EntityDomainType ;
14
14
import org .hibernate .testing .orm .junit .JiraKey ;
15
15
import org .junit .Assert ;
16
- import org .junit .Ignore ;
17
16
import org .junit .Test ;
18
17
19
18
public class EntityGraphsTest extends AbstractEntityGraphTest {
@@ -64,10 +63,9 @@ public void testEqualLinksEqual1() {
64
63
}
65
64
66
65
@ Test
67
- @ Ignore ("Cannot run due to Hibernate bug: https://hibernate.atlassian.net/browse/HHH-10378" )
68
66
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)" );
71
69
Assert .assertTrue ( EntityGraphs .areEqual ( a , b ) );
72
70
}
73
71
@@ -87,7 +85,7 @@ public void testDifferentLinksEqual2() {
87
85
88
86
@ Test
89
87
public void testDifferentLinksEqual3 () {
90
- EntityGraph <GraphParsingTestEntity > a = parseGraph ( "linkToOne(name), linkToOne:MockSubentity( description)" );
88
+ EntityGraph <GraphParsingTestEntity > a = parseGraph ( "linkToOne(name), linkToOne(GraphParsingTestSubentity: description)" );
91
89
EntityGraph <GraphParsingTestEntity > b = parseGraph ( "linkToOne(name, description)" );
92
90
Assert .assertFalse ( EntityGraphs .areEqual ( a , b ) );
93
91
}
0 commit comments