@Test public void testBuildCapabilitiesStringEmpty() { List<BackgroundItem> list = new ArrayList<BackgroundItem>(); assertEquals("", DomainFormatUtility.buildCapabilitiesString(list)); }
public static String buildCapabilitiesString(final List<BackgroundItem> items) { StringBuilder builder = new StringBuilder(); boolean first = true; for (BackgroundItem item : items) { if (first) { first = false; } else { builder.append(", "); } builder.append(item.getName()); } return builder.toString(); }
DomainFormatUtility { public static String buildCapabilitiesString(final List<BackgroundItem> items) { StringBuilder builder = new StringBuilder(); boolean first = true; for (BackgroundItem item : items) { if (first) { first = false; } else { builder.append(", "); } builder.append(item.getName()); } return builder.toString(); } }
DomainFormatUtility { public static String buildCapabilitiesString(final List<BackgroundItem> items) { StringBuilder builder = new StringBuilder(); boolean first = true; for (BackgroundItem item : items) { if (first) { first = false; } else { builder.append(", "); } builder.append(item.getName()); } return builder.toString(); } private  DomainFormatUtility(); }
DomainFormatUtility { public static String buildCapabilitiesString(final List<BackgroundItem> items) { StringBuilder builder = new StringBuilder(); boolean first = true; for (BackgroundItem item : items) { if (first) { first = false; } else { builder.append(", "); } builder.append(item.getName()); } return builder.toString(); } private  DomainFormatUtility(); static List<BackgroundItem> splitCapabilitiesString(final String keywordList); static String buildCapabilitiesString(final List<BackgroundItem> items); static String buildCapabilitiesStringFromStrings(final List<String> items); }
DomainFormatUtility { public static String buildCapabilitiesString(final List<BackgroundItem> items) { StringBuilder builder = new StringBuilder(); boolean first = true; for (BackgroundItem item : items) { if (first) { first = false; } else { builder.append(", "); } builder.append(item.getName()); } return builder.toString(); } private  DomainFormatUtility(); static List<BackgroundItem> splitCapabilitiesString(final String keywordList); static String buildCapabilitiesString(final List<BackgroundItem> items); static String buildCapabilitiesStringFromStrings(final List<String> items);  }