Bug 36578 call hierarchy: Needs more test cases
The call hierarchy view needs more test cases.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CallHierarchyTest.java
return new TestSuite(THIS);
        } else {
            TestSuite suite= new TestSuite();
            suite.addTest(new CallHierarchyTest("test1"));
            return suite;
        }   
    }
    
    protected void setUp() throws Exception {
        fJavaProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");
        fJavaProject2= JavaProjectHelper.createJavaProject("TestProject2", "bin");
    }
    protected void tearDown () throws Exception {
        JavaProjectHelper.delete(fJavaProject1);
        JavaProjectHelper.delete(fJavaProject2);        
    }
                    
    public void test1() throws Exception {
        
        IPackageFragmentRoot jdk= JavaProjectHelper.addRTJar(fJavaProject1);
        assertTrue("jdk not found", jdk != null);
        IPackageFragmentRoot root1= JavaProjectHelper.addSourceContainer(fJavaProject1, "src");
        IPackageFragment pack1= root1.createPackageFragment("pack1", true, null);
        
        ICompilationUnit cu1= pack1.getCompilationUnit("A.java");
        IType type1= cu1.createType("public class A {public void method1() { }\n public void method2() { method1(); }\n}\n", null, true, null);
        
        JavaProjectHelper.addRTJar(fJavaProject2);
        JavaProjectHelper.addRequiredProject(fJavaProject2, fJavaProject1);
        IPackageFragmentRoot root2= JavaProjectHelper.addSourceContainer(fJavaProject2, "src");