mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UsefulTestCase.assertNotEmpty
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user