blob: 0d3f9d4534c6df8765171a3f9191d89cd2c96f2f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-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, SearchTest.countMethodRefs("junit.framework.Test", "countTestCases", new String[0]));
}
public void testFindOverridden() throws Exception {
assertEquals(6, SearchTest.countMethodRefs("junit.framework.TestCase", "countTestCases", new String[0]));
}
}