@Test public void testTo() { AgendaItemBo data = new AgendaItemBo(); data.setId("A"); data.setAgendaId("B"); data.setVersionNumber(0L); data.setRule(getRuleBo("C", "D", "E", "F", null)); data.setSubAgendaId("G"); data.setWhenTrue(getAgendaItemBo("H", "I", "J", getRuleBo("K", "L", "M", "N", null))); data.setWhenFalse(getAgendaItemBo("O", "P", "Q", getRuleBo("R", "S", "T", "U", null))); data.setAlways(getAgendaItemBo("V", "W", "X", getRuleBo("Y", "Z", "AA", "AB", null))); AgendaItemDefinition result = testObject.to(data); assertEquals("A",result.getId()); assertEquals("B",result.getAgendaId()); assertEquals("C",result.getRuleId()); assertEquals("G",result.getSubAgendaId()); assertEquals("J",result.getWhenTrueId()); assertEquals("Q",result.getWhenFalseId()); assertEquals("X",result.getAlwaysId()); assertEquals(0L,(long)result.getVersionNumber()); assertNotNull(result.getRule()); assertNotNull(result.getWhenTrue()); assertNotNull(result.getWhenFalse()); assertNotNull(result.getAlways()); }
static AgendaItemDefinition to(AgendaItemBo bo) { if (bo == null) { return null; } AgendaItemDefinition.Builder builder = AgendaItemDefinition.Builder.create(bo); return builder.build(); }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { static AgendaItemDefinition to(AgendaItemBo bo) { if (bo == null) { return null; } AgendaItemDefinition.Builder builder = AgendaItemDefinition.Builder.create(bo); return builder.build(); } }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { static AgendaItemDefinition to(AgendaItemBo bo) { if (bo == null) { return null; } AgendaItemDefinition.Builder builder = AgendaItemDefinition.Builder.create(bo); return builder.build(); }  }
AgendaItemBo implements AgendaItemDefinitionContract, Versioned, Serializable { static AgendaItemDefinition to(AgendaItemBo bo) { if (bo == null) { return null; } AgendaItemDefinition.Builder builder = AgendaItemDefinition.Builder.create(bo); return builder.build(); }  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 { static AgendaItemDefinition to(AgendaItemBo bo) { if (bo == null) { return null; } AgendaItemDefinition.Builder builder = AgendaItemDefinition.Builder.create(bo); return builder.build(); }  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; }