@Test public void testgetStringForList() { List<Variable> variables = new ArrayList<>(); Variable inputVariable1 = new Variable("input1", Variable.VariableType.INPUT, "Boolean", null); Variable inputVariable2 = new Variable("input2", Variable.VariableType.INPUT, "Object", null); variables.add(inputVariable1); variables.add(inputVariable2); List<MetaDataAttribute> attributes = new ArrayList<>(); MetaDataAttribute metaDataAttribute1 = new MetaDataAttribute("input1", "value"); MetaDataAttribute metaDataAttribute2 = new MetaDataAttribute("input2", "value"); attributes.add(metaDataAttribute1); attributes.add(metaDataAttribute2); assertEquals("input1:Boolean:,input2:Object:", StringUtils.getStringForList(variables)); assertEquals("input1ßvalue,input2ßvalue", StringUtils.getStringForList(attributes, null)); assertEquals("input1ßvalue,input2ßvalue", StringUtils.getStringForList(attributes, "")); assertEquals("input1ßvalueØinput2ßvalue", StringUtils.getStringForList(attributes, "Ø")); }
public static String getStringForList(List<? extends Object> objects) { return getStringForList(objects, ","); }
StringUtils { public static String getStringForList(List<? extends Object> objects) { return getStringForList(objects, ","); } }
StringUtils { public static String getStringForList(List<? extends Object> objects) { return getStringForList(objects, ","); } private  StringUtils(); }
StringUtils { public static String getStringForList(List<? extends Object> objects) { return getStringForList(objects, ","); } private  StringUtils(); static String getStringForList(List<? extends Object> objects); static String getStringForList(List<? extends Object> objects, final String delimiter); static String urlEncode(String s); static String urlDecode(String s); static String encode(String s); static String decode(String s); static boolean isEmpty(String value); static boolean nonEmpty(String value); @SuppressWarnings("rawtypes") static boolean isEmpty(Collection collection); @SuppressWarnings("rawtypes") static boolean nonEmpty(Collection collection); static String createDataTypeDisplayName(String dataType); static void setURL(URL u); }
StringUtils { public static String getStringForList(List<? extends Object> objects) { return getStringForList(objects, ","); } private  StringUtils(); static String getStringForList(List<? extends Object> objects); static String getStringForList(List<? extends Object> objects, final String delimiter); static String urlEncode(String s); static String urlDecode(String s); static String encode(String s); static String decode(String s); static boolean isEmpty(String value); static boolean nonEmpty(String value); @SuppressWarnings("rawtypes") static boolean isEmpty(Collection collection); @SuppressWarnings("rawtypes") static boolean nonEmpty(Collection collection); static String createDataTypeDisplayName(String dataType); static void setURL(URL u); static final String ALPHA_NUM_REGEXP; static final String ALPHA_NUM_UNDERSCORE_DOT_REGEXP; static final String ALPHA_NUM_SPACE_REGEXP; static final RegExp EXPRESSION; }