@Test(expectedExceptions=IllegalArgumentException.class) public void testCheckFailSingle() { Assert.check(false); }
public static void check(boolean... values) { int i = 0; for (boolean value : values) { ++i; if (!value) { String msg = String.format("%s Check %d/%d failed!", PREFIX, i, values.length); throw new IllegalArgumentException(msg); } } }
Assert { public static void check(boolean... values) { int i = 0; for (boolean value : values) { ++i; if (!value) { String msg = String.format("%s Check %d/%d failed!", PREFIX, i, values.length); throw new IllegalArgumentException(msg); } } } }
Assert { public static void check(boolean... values) { int i = 0; for (boolean value : values) { ++i; if (!value) { String msg = String.format("%s Check %d/%d failed!", PREFIX, i, values.length); throw new IllegalArgumentException(msg); } } }  }
Assert { public static void check(boolean... values) { int i = 0; for (boolean value : values) { ++i; if (!value) { String msg = String.format("%s Check %d/%d failed!", PREFIX, i, values.length); throw new IllegalArgumentException(msg); } } }  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 check(boolean... values) { int i = 0; for (boolean value : values) { ++i; if (!value) { String msg = String.format("%s Check %d/%d failed!", PREFIX, i, values.length); throw new IllegalArgumentException(msg); } } }  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);  }