moving tests to CE
[fedora-idea.git] / java / java-tests / testSrc / com / intellij / codeInspection / FieldCanBeLocalTest.java
blobf1c291663a9c0580047d614e82ae292a838a28cc
1 package com.intellij.codeInspection;
3 import com.intellij.JavaTestUtil;
4 import com.intellij.codeInspection.varScopeCanBeNarrowed.FieldCanBeLocalInspection;
5 import com.intellij.testFramework.InspectionTestCase;
7 /**
8 * @author ven
9 */
10 public class FieldCanBeLocalTest extends InspectionTestCase {
11 @Override
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(); }