sanpwc commented on code in PR #3092: URL: https://github.com/apache/ignite-3/pull/3092#discussion_r1477971660
########## modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java: ########## @@ -282,6 +285,39 @@ public static Throwable assertThrows( return throwable; } + /** + * Checks whether runnable throws the correct {@link IgniteException}, which is itself of a specified class. + * + * @param expectedClass Expected exception class. + * @param expectedErrorCode Expected error code of the {@link IgniteException}. + * @param run Runnable to check. + * @param errorMessageFragment Fragment of the error text in the expected exception, {@code null} if not to be checked. + * @return Thrown throwable. + */ + public static Throwable assertThrowsWithCode( Review Comment: Why it's not assertThrowsWith**Cause**? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org