mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-23 15:49:31 +07:00
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; }
|
|
} |