mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
17 lines
508 B
Java
17 lines
508 B
Java
import testutils.ThreadingAssertions;
|
|
import testutils.ExpectedPath
|
|
|
|
@ExpectedPath("MultipleAssertionsInMethod.testMethod -> ThreadingAssertions.assertReadAccess()")
|
|
class MultipleAssertionsInMethod {
|
|
void testMethod() {
|
|
ThreadingAssertions.assertReadAccess();
|
|
doSomething();
|
|
ThreadingAssertions.assertReadAccess();
|
|
if (condition()) {
|
|
ThreadingAssertions.assertReadAccess();
|
|
}
|
|
}
|
|
|
|
void doSomething() {}
|
|
boolean condition() { return true; }
|
|
} |