mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 17:09:38 +07:00
GitOrigin-RevId: 55783f7b0c474b390e9372d2dda144c7966642bf
15 lines
401 B
Java
15 lines
401 B
Java
import com.intellij.util.concurrency.ThreadingAssertions;
|
|
|
|
class MultipleAssertionsInMethod {
|
|
void testMethod() {
|
|
ThreadingAssertions.assertReadAccess();
|
|
doSomething();
|
|
ThreadingAssertions.assertReadAccess();
|
|
if (condition()) {
|
|
ThreadingAssertions.assertReadAccess();
|
|
}
|
|
}
|
|
|
|
void doSomething() {}
|
|
boolean condition() { return true; }
|
|
} |