@SuppressWarnings({"rawtypes"}) public static void assertNotEmpty(final Collection objs) throws Exception {
  if (objs == null) {
    throw new AssertionFailedError("Collection is null");
  }
  if (objs.isEmpty()) {
    throw new AssertionFailedError("Collection is empty");
  }
}

@ SuppressWarnings ( { "rawtypes" } ) public static void assertNotEmpty ( final Collection objs ) throws Exception { if ( objs == null ) { throw new AssertionFailedError ( "Collection is null" ) ; } if ( objs . isEmpty ( ) ) { throw new AssertionFailedError ( "Collection is empty" ) ; } }
test that a collection is not null or empty .
