Example usage for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getRootInterfaces

List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getRootInterfaces

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getRootInterfaces.

Prototype

@Override
public IType[] getRootInterfaces() 

Source Link

Usage

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));
}