summaryrefslogtreecommitdiff
path: root/java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2013-06-20 15:12:35 -0700
committerTor Norbye <tnorbye@google.com>2013-06-20 15:12:35 -0700
commit0e154c74931b6ff5ad6e0ec512b32e30df3cb068 (patch)
treef11327e8a38cd36b012c743a78e3dbf856b857f0 /java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java
parent9a718963c1d41c5bcd3a1bdd5e518d497964ccdf (diff)
downloadidea-0e154c74931b6ff5ad6e0ec512b32e30df3cb068.tar.gz
Snapshot 4a019151cb9b5542ea5ba9ed2f07b29cee0951f0 from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: I2fd287fc46a5378a4c437af4c884c3a3be94c330
Diffstat (limited to 'java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java')
-rw-r--r--java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java b/java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java
index fc5824cd047f..63f946079a49 100644
--- a/java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java
+++ b/java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java
@@ -228,4 +228,11 @@ public class DataFlowInspectionTest extends LightCodeInsightFixtureTestCase {
assert psiMethod != null;
return new ConditionChecker.FromPsiBuilder(psiMethod, psiMethod.getParameterList().getParameters()[0], type).build();
}
+
+ public void testIgnoreAssertions() {
+ final DataFlowInspection inspection = new DataFlowInspection();
+ inspection.IGNORE_ASSERT_STATEMENTS = true;
+ myFixture.enableInspections(inspection);
+ myFixture.testHighlighting(true, false, true, getTestName(false) + ".java");
+ }
}