@Test public void testCheckNotEmptyWithMessageAndValues() { String message = "message with %s %s"; String replacedMessage = "message with two percents"; expectedException.expect(BadRequestException.class); expectedException.expectMessage(Matchers.is(replacedMessage)); WebPreconditions.checkNotEmpty("", message, "two", "percents"); }
public static String checkNotEmpty(String string, @Nullable Object message) { checkArgument(!Strings.isNullOrEmpty(string), message); return string; }
WebPreconditions { public static String checkNotEmpty(String string, @Nullable Object message) { checkArgument(!Strings.isNullOrEmpty(string), message); return string; } }
WebPreconditions { public static String checkNotEmpty(String string, @Nullable Object message) { checkArgument(!Strings.isNullOrEmpty(string), message); return string; } private  WebPreconditions(); }
WebPreconditions { public static String checkNotEmpty(String string, @Nullable Object message) { checkArgument(!Strings.isNullOrEmpty(string), message); return string; } private  WebPreconditions(); static void checkArgument(boolean expression, @Nullable Object message); static void checkArgument(
            boolean expression, @Nullable String messageTemplate, @Nullable Object... messageArgs); static String checkNotEmpty(String string, @Nullable Object message); static String checkNotEmpty(
            String string, @Nullable String messageTemplate, @Nullable Object... messageArgs); static T checkNotNull(T reference, @Nullable Object message); static T checkNotNull(T reference, @Nullable String messageTemplate, @Nullable Object... messageArgs); }
WebPreconditions { public static String checkNotEmpty(String string, @Nullable Object message) { checkArgument(!Strings.isNullOrEmpty(string), message); return string; } private  WebPreconditions(); static void checkArgument(boolean expression, @Nullable Object message); static void checkArgument(
            boolean expression, @Nullable String messageTemplate, @Nullable Object... messageArgs); static String checkNotEmpty(String string, @Nullable Object message); static String checkNotEmpty(
            String string, @Nullable String messageTemplate, @Nullable Object... messageArgs); static T checkNotNull(T reference, @Nullable Object message); static T checkNotNull(T reference, @Nullable String messageTemplate, @Nullable Object... messageArgs);  }