@Test public void testGenerateDefaultValueMessage() throws Exception { String defaultMessage = FormatUtils.generateDefaultValueMessage("metric", 1234); assertThat(defaultMessage, allOf(containsString("metric"), containsString("1234"))); }
public static String generateDefaultValueMessage(String metric, Number value) { return String.format(DEFAULT_VALUE_MESSAGE_TEMPLATE, metric, formatNumber(value)); }
FormatUtils { public static String generateDefaultValueMessage(String metric, Number value) { return String.format(DEFAULT_VALUE_MESSAGE_TEMPLATE, metric, formatNumber(value)); } }
FormatUtils { public static String generateDefaultValueMessage(String metric, Number value) { return String.format(DEFAULT_VALUE_MESSAGE_TEMPLATE, metric, formatNumber(value)); } private  FormatUtils(); }
FormatUtils { public static String generateDefaultValueMessage(String metric, Number value) { return String.format(DEFAULT_VALUE_MESSAGE_TEMPLATE, metric, formatNumber(value)); } private  FormatUtils(); static ZonedDateTime parseUTCTime(String value); static Number parseNumber(String value); static String formatNumber(Number value); static String formatNumberFiveCharLimit(Number value); static String formatMillisOrSeconds(Number value); static String generateDefaultValueMessage(String metric, Number value); }
FormatUtils { public static String generateDefaultValueMessage(String metric, Number value) { return String.format(DEFAULT_VALUE_MESSAGE_TEMPLATE, metric, formatNumber(value)); } private  FormatUtils(); static ZonedDateTime parseUTCTime(String value); static Number parseNumber(String value); static String formatNumber(Number value); static String formatNumberFiveCharLimit(Number value); static String formatMillisOrSeconds(Number value); static String generateDefaultValueMessage(String metric, Number value);  }