From 0e154c74931b6ff5ad6e0ec512b32e30df3cb068 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Thu, 20 Jun 2013 15:12:35 -0700 Subject: Snapshot 4a019151cb9b5542ea5ba9ed2f07b29cee0951f0 from master branch of git://git.jetbrains.org/idea/community.git Change-Id: I2fd287fc46a5378a4c437af4c884c3a3be94c330 --- .../com/intellij/codeInspection/DataFlowInspectionTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'java/java-tests/testSrc/com/intellij/codeInspection/DataFlowInspectionTest.java') 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"); + } } -- cgit v1.2.3