mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa: test that assert throws AssertionError (IDEA-69727)
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user