mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
moving tests to CE
This commit is contained in:
+2
-2
@@ -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);
|
||||
+6
@@ -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());
|
||||
Reference in New Issue
Block a user