@Test public void testCutTo() throws Exception { assertEquals(AbstractOutputBuilder.cutTo("xxxxxxxx", 50), "xxxxxxxx"); assertEquals(AbstractOutputBuilder.cutTo("xxxxxxxx", 5), "xxxxx ..."); assertEquals(AbstractOutputBuilder.cutTo(null, 5), null); }
protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; }
AbstractOutputBuilder { protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; } }
AbstractOutputBuilder { protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; }  }
AbstractOutputBuilder { protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; }  static String replacePlaceHolder(String message, PlaceholderMap placeholderStringMap); }
AbstractOutputBuilder { protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; }  static String replacePlaceHolder(String message, PlaceholderMap placeholderStringMap); final static SimpleDateFormat dateFormat; }