adjusted expected results: latest changes improved symmetry between upwards and downwards queries.
Even though not fully analyzed these changes are welcome.
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/hierarchy/contentprovider/OTSubHierarchyContentProviderTests.java b/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/hierarchy/contentprovider/OTSubHierarchyContentProviderTests.java
index 57b1e92..5bc5f08 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/hierarchy/contentprovider/OTSubHierarchyContentProviderTests.java
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/hierarchy/contentprovider/OTSubHierarchyContentProviderTests.java
@@ -306,13 +306,12 @@
{
Object actual;
Map<IType, IType> parents = getParentMap();
- parents.put(_T2_R2, _T1_R2); // additional link: outside the cone of T1$R1
for (int idx = 0; idx < _allTypesInProject.length; idx++)
{
IType cur = _allTypesInProject[idx];
actual = _testObject.getParent(cur);
- assertEquals("Parent not null for " + cur.getElementName() + " ", parents.get(cur), actual);
+ assertEquals("Unexpected parent for " + cur.getFullyQualifiedName() + " ", parents.get(cur), actual);
}
}
@@ -330,6 +329,8 @@
parents.put(_T7_R2, _T5_R2);
parents.put(_T7_R3, _T5_R3);
parents.put(_T8_R2, _T2_R2);
+
+ parents.put(_T2_R2, _T2_R1); // since T1$R2 is outside the cone of T1$R1 we see T2$R2 below its explicit super
return parents;
}
@@ -395,7 +396,6 @@
expectedRoot = new TreeNode(_T1_R1);
Map<IType, IType> parentMap = getParentMap();
- parentMap.put(_T2_R2, _T2_R1); // replace link for T2$R2: since T1$R2 is outside the cone of T1$R1 we see T2$R2 below its explicit super
outer: while (parentMap.size() > 1) { // last link to object will remain unconsumed
for (Map.Entry<IType,IType> entry : parentMap.entrySet()) {