@Test public void notNullOrEmpty_ok() throws Exception { String str = "hello"; Assertion.notNullOrEmpty(str, "string"); }
public static void notNullOrEmpty(String argument, String name) { if (argument == null || argument.isEmpty()) { throw new InvalidArgumentException(name + " cannot be null or empty"); } }
Assertion { public static void notNullOrEmpty(String argument, String name) { if (argument == null || argument.isEmpty()) { throw new InvalidArgumentException(name + " cannot be null or empty"); } } }
Assertion { public static void notNullOrEmpty(String argument, String name) { if (argument == null || argument.isEmpty()) { throw new InvalidArgumentException(name + " cannot be null or empty"); } }  }
Assertion { public static void notNullOrEmpty(String argument, String name) { if (argument == null || argument.isEmpty()) { throw new InvalidArgumentException(name + " cannot be null or empty"); } }  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 void notNullOrEmpty(String argument, String name) { if (argument == null || argument.isEmpty()) { throw new InvalidArgumentException(name + " cannot be null or empty"); } }  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);  }