diff --git a/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java b/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java index 7a38cc27e641..d7e6e5a42ec4 100644 --- a/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java @@ -604,6 +604,11 @@ public abstract class UsefulTestCase extends TestCase { assertOrderedEquals(array); } + public static void assertNotEmpty(final Collection collection) { + if (collection == null) return; + assertTrue(!collection.isEmpty()); + } + public static void assertEmpty(final Collection collection) { assertEmpty(collection.toString(), collection); }