blob: e5d64984a44b2b0c7bd6d018d07ad0da2cead2d1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ui.tests.search;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
*/
public class WorkspaceReferenceTest extends TestCase {
public static Test allTests() {
return new JUnitSourceSetup(new TestSuite(WorkspaceReferenceTest.class));
}
public static Test suite() {
return allTests();
}
public WorkspaceReferenceTest(String name) {
super(name);
}
public void testSimpleMethodRef() throws Exception {
assertEquals(9, SearchTestHelper.countMethodRefs("junit.framework.Test", "countTestCases", new String[0]));
}
public void testFindOverridden() throws Exception {
assertEquals(6, SearchTestHelper.countMethodRefs("junit.framework.TestCase", "countTestCases", new String[0]));
}
}