@Test(expected = InvalidArgumentException.class) public void notNull_withNull() throws Exception { Object obj = null; Assertion.notNull(obj, "object"); }
public static <T> void notNull(T argument, String format, Object... args) { if (argument == null) { throw new InvalidArgumentException(String.format(format, args) + " cannot be null"); } }
Assertion { public static <T> void notNull(T argument, String format, Object... args) { if (argument == null) { throw new InvalidArgumentException(String.format(format, args) + " cannot be null"); } } }
Assertion { public static <T> void notNull(T argument, String format, Object... args) { if (argument == null) { throw new InvalidArgumentException(String.format(format, args) + " cannot be null"); } }  }
Assertion { public static <T> void notNull(T argument, String format, Object... args) { if (argument == null) { throw new InvalidArgumentException(String.format(format, args) + " cannot be null"); } }  static void notNull(T argument, String format, Object... args); static void notNullOrEmpty(String argument, String name); static void negative(long number, String name); static void positive(long number, String name); static void nonNegative(long number, String name); static void nonPositive(long number, String name); }
Assertion { public static <T> void notNull(T argument, String format, Object... args) { if (argument == null) { throw new InvalidArgumentException(String.format(format, args) + " cannot be null"); } }  static void notNull(T argument, String format, Object... args); static void notNullOrEmpty(String argument, String name); static void negative(long number, String name); static void positive(long number, String name); static void nonNegative(long number, String name); static void nonPositive(long number, String name);  }