dfa: test that assert throws AssertionError (IDEA-69727)

This commit is contained in:
peter
2015-07-10 22:33:29 +02:00
parent eeabb7e9d8
commit b091be1813
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,15 @@
class Some {
void assertContainsAllVariants(boolean b) {
try {
assert b;
System.out.println();
} catch (Throwable e) {
if (e instanceof AssertionError) {
System.out.println();
}
}
}
}
@@ -250,6 +250,7 @@ public class DataFlowInspectionTest extends LightCodeInsightFixtureTestCase {
public void testLongDisjunctionsNotComplex() { doTest(); }
public void testWhileNotComplex() { doTest(); }
public void testAssertTrueNotComplex() { doTest(); }
public void testAssertThrowsAssertionError() { doTest(); }
public void testManyDisjunctiveFieldAssignmentsInLoopNotComplex() { doTest(); }
public void testManyContinuesNotComplex() { doTest(); }
public void testFinallyNotComplex() { doTest(); }