diff --git a/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java b/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java index cf1bbf510df4..c3709477425b 100644 --- a/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java @@ -879,7 +879,7 @@ public abstract class UsefulTestCase extends TestCase { * @param exceptionClass Expected exception type * @param runnable Block annotated with some exception type */ - protected void assertThrows(@NotNull Class exceptionClass, + protected void assertThrows(@NotNull Class exceptionClass, @NotNull ThrowableRunnable runnable) throws T { assertThrows(exceptionClass, null, runnable); } @@ -893,7 +893,7 @@ public abstract class UsefulTestCase extends TestCase { * @param runnable Block annotated with some exception type */ @SuppressWarnings({"unchecked", "SameParameterValue"}) - protected void assertThrows(@NotNull Class exceptionClass, @Nullable String expectedErrorMsg, + protected void assertThrows(@NotNull Class exceptionClass, @Nullable String expectedErrorMsg, @NotNull ThrowableRunnable runnable) throws T { assertExceptionOccurred(true, new AbstractExceptionCase() { @Override