List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getRootInterfaces
@Override
public IType[] getRootInterfaces()
From source file:org.eclipse.objectteams.otdt.tests.subhierarchy.OTSubTypeHierarchyTest010.java
License:Open Source License
public void testGetRootInterfaces_interfaceA() throws JavaModelException { _focusType = _interfaceA;// w w w . j a v a2s .c o m TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), true); hierarchy.refresh(new NullProgressMonitor()); IType[] actual = hierarchy.getRootInterfaces(); IType[] expected = new IType[] { _focusType }; assertEquals(expected.length, actual.length); assertTrue(compareTypes(expected, actual)); }