Mmuzaf commented on a change in pull request #8833:
URL: https://github.com/apache/ignite/pull/8833#discussion_r583580520



##########
File path: 
modules/core/src/test/java/org/apache/ignite/testframework/junits/JUnitAssertAware.java
##########
@@ -203,4 +208,64 @@ protected static void assertNotSame(Object unexpected, 
Object actual) {
     protected static void assertNotSame(String msg, Object exp, Object actual) 
{
         Assert.assertNotSame(msg, exp, actual);
     }
+
+    /** A runnable that can throw any checked exception. */
+    @FunctionalInterface
+    public interface ThrowingRunnable {
+        void run() throws Throwable;
+    }
+
+    /** Checks a specific exception class is thrown by the given runnable, and 
returns it. */
+    public static <T extends Throwable> T expectThrows(

Review comment:
       Hello, can you check these methods? Are they the same?
   
   ```
   org.apache.ignite.testframework.GridTestUtils#assertThrows
   
   org.apache.ignite.testframework.GridTestUtils#assertThrowsWithCause
   
   org.apache.ignite.testframework.GridTestUtils#assertThrowsAnyCause
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to