/** * Create a generator of arrays that are not empty. * * @param <T> * type of arrays elements generated * @param content * generator providing the content of arrays generated * @param type * type of arrays generated */ public static <T> Generator<T[]> nonEmptyArrays(Generator<? extends T> content, Class<T> type) { return arrays(content, positiveIntegers(MAX_SIZE), type); }