ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] ibessonov commented on a change in pull request #6564: IGNITE-11869 Rework command handler tests
Date Thu, 27 Jun 2019 09:25:04 GMT
ibessonov commented on a change in pull request #6564: IGNITE-11869 Rework command handler
tests
URL: https://github.com/apache/ignite/pull/6564#discussion_r298082189
 
 

 ##########
 File path: modules/core/src/test/java/org/apache/ignite/testframework/GridTestUtils.java
 ##########
 @@ -298,6 +300,86 @@ public static void dumpMessages() {
 //        }).start();
 //    }
 
+    /**
+     * Checks that string {@param str} doesn't contains substring {@param substr}. Logs both
strings
+     * and throws {@link java.lang.AssertionError}, if contains.
+     *
+     * @param log Logger (optional).
+     * @param str String.
+     * @param substr Substring.
+     */
+    public static void assertNotContains(@Nullable IgniteLogger log, String str, String substr)
{
+        try {
+            assertFalse(str.contains(substr));
+        } catch (AssertionError e) {
 
 Review comment:
   Please reformat this code (and other methods as well)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message