mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
32 lines
1.1 KiB
Java
32 lines
1.1 KiB
Java
package com.intellij.codeInspection;
|
|
|
|
import com.intellij.JavaTestUtil;
|
|
import com.intellij.codeInspection.varScopeCanBeNarrowed.FieldCanBeLocalInspection;
|
|
import com.intellij.testFramework.InspectionTestCase;
|
|
|
|
/**
|
|
* @author ven
|
|
*/
|
|
public class FieldCanBeLocalTest extends InspectionTestCase {
|
|
@Override
|
|
protected String getTestDataPath() {
|
|
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
|
|
}
|
|
|
|
private void doTest() throws Exception {
|
|
doTest("fieldCanBeLocal/" + getTestName(true), new FieldCanBeLocalInspection());
|
|
}
|
|
|
|
public void testSimple () throws Exception { doTest(); }
|
|
|
|
public void testTwoMethods () throws Exception { doTest(); }
|
|
|
|
public void testConstructor () throws Exception { doTest(); }
|
|
public void testStaticFinal() throws Exception { doTest(); }
|
|
public void testStaticAccess() throws Exception { doTest(); }
|
|
public void testInnerClassConstructor() throws Exception { doTest(); }
|
|
public void testLocalVar2InnerClass() throws Exception { doTest(); }
|
|
public void testStateField() throws Exception { doTest(); }
|
|
public void testLocalStateVar2InnerClass() throws Exception { doTest(); }
|
|
}
|