@Test public void testCheckNotBlankStringExceptionFormatting() { try { MorePreconditions.checkNotBlank((String) null, "the meaning of life is %s", 42); } catch (NullPointerException e) { assertEquals("the meaning of life is 42", e.getMessage()); } try { MorePreconditions.checkNotBlank("", "wing beats per second is %s", 43); } catch (IllegalArgumentException e) { assertEquals("wing beats per second is 43", e.getMessage()); } }
public static String checkNotBlank(String argument) { return checkNotBlank(argument, ARG_NOT_BLANK_MSG); }
MorePreconditions { public static String checkNotBlank(String argument) { return checkNotBlank(argument, ARG_NOT_BLANK_MSG); } }
MorePreconditions { public static String checkNotBlank(String argument) { return checkNotBlank(argument, ARG_NOT_BLANK_MSG); } private  MorePreconditions(); }
MorePreconditions { public static String checkNotBlank(String argument) { return checkNotBlank(argument, ARG_NOT_BLANK_MSG); } private  MorePreconditions(); static String checkNotBlank(String argument); static String checkNotBlank(String argument, String message, Object... args); static T checkNotBlank(T argument); static T checkNotBlank(T argument, String message,
      Object... args); }
MorePreconditions { public static String checkNotBlank(String argument) { return checkNotBlank(argument, ARG_NOT_BLANK_MSG); } private  MorePreconditions(); static String checkNotBlank(String argument); static String checkNotBlank(String argument, String message, Object... args); static T checkNotBlank(T argument); static T checkNotBlank(T argument, String message,
      Object... args);  }