mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user