moving tests to CE

This commit is contained in:
Dmitry Jemerov
2009-09-25 20:54:27 +04:00
parent b7929673b6
commit 2912d6965b
7 changed files with 8 additions and 2 deletions
@@ -23,7 +23,7 @@ public class EntryPointsConverterTest extends TestCase {
doTest("field", "java.lang.String.myFakeField", "java.lang.String myFakeField");
}
private void doTest(String type, String fqName, String expectedFQName) throws Exception {
private static void doTest(String type, String fqName, String expectedFQName) throws Exception {
final Element entryPoints = setUpEntryPoint(type, fqName);
final EntryPointsManagerImpl manager = new EntryPointsManagerImpl(null);
@@ -40,7 +40,7 @@ public class EntryPointsConverterTest extends TestCase {
assertTrue(JDOMUtil.areElementsEqual(testElement, expected));
}
private Element setUpEntryPoint(String type, String fqName) {
private static Element setUpEntryPoint(String type, String fqName) {
Element entryPoints = new Element("entry_points");
Element entryPoint = new Element("entry_point");
entryPoint.setAttribute("TYPE", type);
@@ -10,12 +10,18 @@
*/
package com.intellij.codeInspection;
import com.intellij.JavaTestUtil;
import com.intellij.codeInspection.equalsAndHashcode.EqualsAndHashcode;
import com.intellij.testFramework.InspectionTestCase;
public class EqualsAndHashCodeTest extends InspectionTestCase {
private final EqualsAndHashcode myTool = new EqualsAndHashcode();
@Override
protected String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
}
protected void setUp() throws Exception {
super.setUp();
myTool.projectOpened(getProject());