mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
fix tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user