@Test public void testGetAlwaysList() { final AgendaItemBo agendaItemBo1 = getAgendaItemBo("A", "B", "C", null); final AgendaItemBo agendaItemBo2 = getAgendaItemBo("D", "E", "F", null); agendaItemBo2.setAlways(agendaItemBo1); final AgendaItemBo agendaItemBo3 = getAgendaItemBo("G", "H", "I", null); agendaItemBo3.setAlways(agendaItemBo2); testObject.setAlways(agendaItemBo3); List<AgendaItemBo> result = testObject.getAlwaysList(); assertNotNull(result); assertEquals(3,result.size()); }
public List<AgendaItemBo> getAlwaysList() { List<AgendaItemBo> results = new ArrayList<AgendaItemBo>(); AgendaItemBo currentNode = this; while (currentNode.always != null) { results.add(currentNode.always); currentNode = currentNode.always; } return results; }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { public List<AgendaItemBo> getAlwaysList() { List<AgendaItemBo> results = new ArrayList<AgendaItemBo>(); AgendaItemBo currentNode = this; while (currentNode.always != null) { results.add(currentNode.always); currentNode = currentNode.always; } return results; } }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { public List<AgendaItemBo> getAlwaysList() { List<AgendaItemBo> results = new ArrayList<AgendaItemBo>(); AgendaItemBo currentNode = this; while (currentNode.always != null) { results.add(currentNode.always); currentNode = currentNode.always; } return results; }  }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { public List<AgendaItemBo> getAlwaysList() { List<AgendaItemBo> results = new ArrayList<AgendaItemBo>(); AgendaItemBo currentNode = this; while (currentNode.always != null) { results.add(currentNode.always); currentNode = currentNode.always; } return results; }  String getUl(AgendaItemBo firstItem); String getUlHelper(AgendaItemBo item); String getRuleText(); List<AgendaItemBo> getAlwaysList(); @Override String getId(); void setId(String id); @Override String getAgendaId(); void setAgendaId(String agendaId); @Override String getRuleId(); @Override String getSubAgendaId(); void setSubAgendaId(String subAgendaId); @Override String getWhenTrueId(); void setWhenTrueId(String whenTrueId); @Override String getWhenFalseId(); void setWhenFalseId(String whenFalseId); @Override String getAlwaysId(); void setAlwaysId(String alwaysId); @Override Long getVersionNumber(); void setVersionNumber(Long versionNumber); @Override AgendaItemBo getWhenTrue(); void setWhenTrue(AgendaItemBo whenTrue); @Override AgendaItemBo getWhenFalse(); void setWhenFalse(AgendaItemBo whenFalse); @Override AgendaItemBo getAlways(); void setAlways(AgendaItemBo always); @Override RuleBo getRule(); @Override AgendaDefinitionContract getSubAgenda(); void setRule(RuleBo rule); static AgendaItemBo from(AgendaItemDefinition im); AgendaItemBo copyAgendaItem(AgendaBo copiedAgenda, Map<String, RuleBo> oldRuleIdToNew, Map<String, AgendaItemBo> oldAgendaItemIdToNew, List<AgendaItemBo> copiedAgendaItems, final String dts); DataObjectService getDataObjectService(); void setDataObjectService(DataObjectService dataObjectService); KrmsTypeRepositoryService getKrmsTypeRepositoryService(); void setKrmsTypeRepositoryService(KrmsTypeRepositoryService dataObjectService); }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { public List<AgendaItemBo> getAlwaysList() { List<AgendaItemBo> results = new ArrayList<AgendaItemBo>(); AgendaItemBo currentNode = this; while (currentNode.always != null) { results.add(currentNode.always); currentNode = currentNode.always; } return results; }  String getUl(AgendaItemBo firstItem); String getUlHelper(AgendaItemBo item); String getRuleText(); List<AgendaItemBo> getAlwaysList(); @Override String getId(); void setId(String id); @Override String getAgendaId(); void setAgendaId(String agendaId); @Override String getRuleId(); @Override String getSubAgendaId(); void setSubAgendaId(String subAgendaId); @Override String getWhenTrueId(); void setWhenTrueId(String whenTrueId); @Override String getWhenFalseId(); void setWhenFalseId(String whenFalseId); @Override String getAlwaysId(); void setAlwaysId(String alwaysId); @Override Long getVersionNumber(); void setVersionNumber(Long versionNumber); @Override AgendaItemBo getWhenTrue(); void setWhenTrue(AgendaItemBo whenTrue); @Override AgendaItemBo getWhenFalse(); void setWhenFalse(AgendaItemBo whenFalse); @Override AgendaItemBo getAlways(); void setAlways(AgendaItemBo always); @Override RuleBo getRule(); @Override AgendaDefinitionContract getSubAgenda(); void setRule(RuleBo rule); static AgendaItemBo from(AgendaItemDefinition im); AgendaItemBo copyAgendaItem(AgendaBo copiedAgenda, Map<String, RuleBo> oldRuleIdToNew, Map<String, AgendaItemBo> oldAgendaItemIdToNew, List<AgendaItemBo> copiedAgendaItems, final String dts); DataObjectService getDataObjectService(); void setDataObjectService(DataObjectService dataObjectService); KrmsTypeRepositoryService getKrmsTypeRepositoryService(); void setKrmsTypeRepositoryService(KrmsTypeRepositoryService dataObjectService); static final String COPY_OF_TEXT; static final String AGENDA_ITEM_SEQ_NAME; }