fix tests

This commit is contained in:
Anna Kozlova
2016-05-24 10:07:38 +02:00
parent d04c56cc46
commit b4b39a0c30
5 changed files with 15 additions and 3 deletions

View File

@@ -103,6 +103,15 @@ public class CanBeFinalTest extends InspectionTestCase {
doTest(tool);
}
public void testFieldNonInitializedUsedInClassInitializer() throws Exception {
CanBeFinalInspection tool = new CanBeFinalInspection();
tool.REPORT_CLASSES = false;
tool.REPORT_FIELDS = true;
tool.REPORT_METHODS = false;
doTest(tool);
}
public void testInterfaceMethodInHierarchy() throws Exception {
CanBeFinalInspection tool = new CanBeFinalInspection();
tool.REPORT_CLASSES = false;

View File

@@ -41,7 +41,6 @@ public class FieldCanBeLocalTest extends InspectionTestCase {
public void testFieldUsedForWritingInLambda() throws Exception {doTest();}
public void testStaticQualifiedFieldAccessForWriting() throws Exception {doTest();}
public void testFieldReferencedFromAnotherObject() throws Exception {doTest();}
public void testFieldNonInitializedUsedInClassInitializer() throws Exception {doTest();}
public void testIgnoreAnnotated() throws Exception {
final FieldCanBeLocalInspection inspection = new FieldCanBeLocalInspection();
doTestConfigured(inspection);