1 package com
.intellij
.codeInspection
;
3 import com
.intellij
.JavaTestUtil
;
4 import com
.intellij
.codeInspection
.varScopeCanBeNarrowed
.FieldCanBeLocalInspection
;
5 import com
.intellij
.testFramework
.InspectionTestCase
;
10 public class FieldCanBeLocalTest
extends InspectionTestCase
{
12 protected String
getTestDataPath() {
13 return JavaTestUtil
.getJavaTestDataPath() + "/inspection";
16 private void doTest() throws Exception
{
17 doTest("fieldCanBeLocal/" + getTestName(true), new FieldCanBeLocalInspection());
20 public void testSimple () throws Exception
{ doTest(); }
22 public void testTwoMethods () throws Exception
{ doTest(); }
24 public void testConstructor () throws Exception
{ doTest(); }
25 public void testStaticFinal() throws Exception
{ doTest(); }
26 public void testStaticAccess() throws Exception
{ doTest(); }