@Test(expectedExceptions=IllegalArgumentException.class) public void testNonNullFailMulti() { Assert.nonNull("a", 123, new Object(), null); }
public static void nonNull(Object... values) { int i = 0; for (Object value : values) { ++i; if (value == null) { String message = String.format("%s Value %d/%d is null.", PREFIX, i, values.length); throw new IllegalArgumentException(message); } } }
Assert { public static void nonNull(Object... values) { int i = 0; for (Object value : values) { ++i; if (value == null) { String message = String.format("%s Value %d/%d is null.", PREFIX, i, values.length); throw new IllegalArgumentException(message); } } } }
Assert { public static void nonNull(Object... values) { int i = 0; for (Object value : values) { ++i; if (value == null) { String message = String.format("%s Value %d/%d is null.", PREFIX, i, values.length); throw new IllegalArgumentException(message); } } }  }
Assert { public static void nonNull(Object... values) { int i = 0; for (Object value : values) { ++i; if (value == null) { String message = String.format("%s Value %d/%d is null.", PREFIX, i, values.length); throw new IllegalArgumentException(message); } } }  static void nonNull(Object... values); static void check(boolean... values); static void unreachable(); static void unreachable(String message, Object... objects); static T unreachable(Class<T> returnType); static T unreachable(Class<T> returnType, String message, Object... objects); static T unreachable(Class<T> returnType, Exception problem); }
Assert { public static void nonNull(Object... values) { int i = 0; for (Object value : values) { ++i; if (value == null) { String message = String.format("%s Value %d/%d is null.", PREFIX, i, values.length); throw new IllegalArgumentException(message); } } }  static void nonNull(Object... values); static void check(boolean... values); static void unreachable(); static void unreachable(String message, Object... objects); static T unreachable(Class<T> returnType); static T unreachable(Class<T> returnType, String message, Object... objects); static T unreachable(Class<T> returnType, Exception problem);  }