@Test void notEmpty_test_with_null_as_array() { Throwable t = assertThrows(IllegalArgumentException.class, () -> AssertUtil.notEmpty((Object[]) null, "message") ); assertThat(t).hasMessage("message"); }
public static void notEmpty(Object[] array, String message) { if (array == null || array.length == 0) { throw new IllegalArgumentException(message); } }
AssertUtil { public static void notEmpty(Object[] array, String message) { if (array == null || array.length == 0) { throw new IllegalArgumentException(message); } } }
AssertUtil { public static void notEmpty(Object[] array, String message) { if (array == null || array.length == 0) { throw new IllegalArgumentException(message); } } private  AssertUtil(); }
AssertUtil { public static void notEmpty(Object[] array, String message) { if (array == null || array.length == 0) { throw new IllegalArgumentException(message); } } private  AssertUtil(); static void notNull(Object object, String message); static void notEmpty(Object[] array, String message); static void notEmpty(Collection<?> collection, String message); static void isTrue(boolean condition, String message); }
AssertUtil { public static void notEmpty(Object[] array, String message) { if (array == null || array.length == 0) { throw new IllegalArgumentException(message); } } private  AssertUtil(); static void notNull(Object object, String message); static void notEmpty(Object[] array, String message); static void notEmpty(Collection<?> collection, String message); static void isTrue(boolean condition, String message);  }