@Test public void testHelperEmpty() throws Exception { Map<?, ?> map = new MifosSelect().helper(Collections.EMPTY_LIST); Assert.assertEquals(null, map); }
Map helper(Collection coll) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Map<Object, Object> map = new LinkedHashMap<Object, Object>(); if (coll != null && !coll.isEmpty()) { for (Iterator it = coll.iterator(); it.hasNext();) { Object object = it.next(); Object string1 = null; Object string2 = null; String str1 = this.Property2.substring(0, 1); getList = object.getClass().getMethod("get" + str1.toUpperCase() + this.Property2.substring(1), (Class[]) null); string2 = getList.invoke(object, (Object[]) null); String str2 = this.Property1.substring(0, 1); getList = object.getClass().getMethod("get" + str2.toUpperCase() + this.Property1.substring(1), (Class[]) null); string1 = getList.invoke(object, (Object[]) null); map.put(string1, string2); } return map; } return null; }
MifosSelect extends BodyTagSupport { Map helper(Collection coll) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Map<Object, Object> map = new LinkedHashMap<Object, Object>(); if (coll != null && !coll.isEmpty()) { for (Iterator it = coll.iterator(); it.hasNext();) { Object object = it.next(); Object string1 = null; Object string2 = null; String str1 = this.Property2.substring(0, 1); getList = object.getClass().getMethod("get" + str1.toUpperCase() + this.Property2.substring(1), (Class[]) null); string2 = getList.invoke(object, (Object[]) null); String str2 = this.Property1.substring(0, 1); getList = object.getClass().getMethod("get" + str2.toUpperCase() + this.Property1.substring(1), (Class[]) null); string1 = getList.invoke(object, (Object[]) null); map.put(string1, string2); } return map; } return null; } }
MifosSelect extends BodyTagSupport { Map helper(Collection coll) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Map<Object, Object> map = new LinkedHashMap<Object, Object>(); if (coll != null && !coll.isEmpty()) { for (Iterator it = coll.iterator(); it.hasNext();) { Object object = it.next(); Object string1 = null; Object string2 = null; String str1 = this.Property2.substring(0, 1); getList = object.getClass().getMethod("get" + str1.toUpperCase() + this.Property2.substring(1), (Class[]) null); string2 = getList.invoke(object, (Object[]) null); String str2 = this.Property1.substring(0, 1); getList = object.getClass().getMethod("get" + str2.toUpperCase() + this.Property1.substring(1), (Class[]) null); string1 = getList.invoke(object, (Object[]) null); map.put(string1, string2); } return map; } return null; } MifosSelect();  MifosSelect(String label); }
MifosSelect extends BodyTagSupport { Map helper(Collection coll) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Map<Object, Object> map = new LinkedHashMap<Object, Object>(); if (coll != null && !coll.isEmpty()) { for (Iterator it = coll.iterator(); it.hasNext();) { Object object = it.next(); Object string1 = null; Object string2 = null; String str1 = this.Property2.substring(0, 1); getList = object.getClass().getMethod("get" + str1.toUpperCase() + this.Property2.substring(1), (Class[]) null); string2 = getList.invoke(object, (Object[]) null); String str2 = this.Property1.substring(0, 1); getList = object.getClass().getMethod("get" + str2.toUpperCase() + this.Property1.substring(1), (Class[]) null); string1 = getList.invoke(object, (Object[]) null); map.put(string1, string2); } return map; } return null; } MifosSelect();  MifosSelect(String label); String getAddButtonName(); void setAddButtonName(String addButtonName); String getLeftListName(); void setLeftListName(String leftListName); String getRemoveButtonName(); void setRemoveButtonName(String removeButtonName); String getSpacedOut(); void setSpacedOut(String spacedOut); String getInput(); void setInput(String input); String getOutput(); void setOutput(String output); String getProperty1(); void setProperty1(String property1); String getProperty2(); void setProperty2(String property2); String getProperty(); void setProperty(String property); String getMultiple(); void setMultiple(String multiple); String getName(); void setName(String name); String getSize(); void setSize(String size); String getSelectStyle(); void setSelectStyle(String selectStyle); String getLabel(); void setLabel(String label); @Override int doEndTag(); void setMessageLookup(MessageLookup messageLookup); }
MifosSelect extends BodyTagSupport { Map helper(Collection coll) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { Map<Object, Object> map = new LinkedHashMap<Object, Object>(); if (coll != null && !coll.isEmpty()) { for (Iterator it = coll.iterator(); it.hasNext();) { Object object = it.next(); Object string1 = null; Object string2 = null; String str1 = this.Property2.substring(0, 1); getList = object.getClass().getMethod("get" + str1.toUpperCase() + this.Property2.substring(1), (Class[]) null); string2 = getList.invoke(object, (Object[]) null); String str2 = this.Property1.substring(0, 1); getList = object.getClass().getMethod("get" + str2.toUpperCase() + this.Property1.substring(1), (Class[]) null); string1 = getList.invoke(object, (Object[]) null); map.put(string1, string2); } return map; } return null; } MifosSelect();  MifosSelect(String label); String getAddButtonName(); void setAddButtonName(String addButtonName); String getLeftListName(); void setLeftListName(String leftListName); String getRemoveButtonName(); void setRemoveButtonName(String removeButtonName); String getSpacedOut(); void setSpacedOut(String spacedOut); String getInput(); void setInput(String input); String getOutput(); void setOutput(String output); String getProperty1(); void setProperty1(String property1); String getProperty2(); void setProperty2(String property2); String getProperty(); void setProperty(String property); String getMultiple(); void setMultiple(String multiple); String getName(); void setName(String name); String getSize(); void setSize(String size); String getSelectStyle(); void setSelectStyle(String selectStyle); String getLabel(); void setLabel(String label); @Override int doEndTag(); void setMessageLookup(MessageLookup messageLookup);  }