@Test public void testGetHierarchyPathTag_nullHierarchy() { uut.getOrCreateHierarchyPathTag(null); verifyZeroInteractions(hierarchyAutoBeanMock); }
public String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy) { if (hierarchy != null){ final AutoBean<OntologyHierarchy> hierarchyAutoBean = getHierarchyAutoBean(hierarchy); String parentTag = hierarchyAutoBean.getTag(HIERARCHY_PARENT_MODEL_KEY); String modelTag = hierarchyAutoBean.getTag(HIERARCHY_MODEL_KEY); if (parentTag == null || modelTag == null) { modelTag = createHierarchyPathTag(hierarchy, hierarchyAutoBean, parentTag, modelTag); setParentTagOnChildren(modelTag, hierarchy); } return modelTag; } return ""; }
OntologyUtil { public String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy) { if (hierarchy != null){ final AutoBean<OntologyHierarchy> hierarchyAutoBean = getHierarchyAutoBean(hierarchy); String parentTag = hierarchyAutoBean.getTag(HIERARCHY_PARENT_MODEL_KEY); String modelTag = hierarchyAutoBean.getTag(HIERARCHY_MODEL_KEY); if (parentTag == null || modelTag == null) { modelTag = createHierarchyPathTag(hierarchy, hierarchyAutoBean, parentTag, modelTag); setParentTagOnChildren(modelTag, hierarchy); } return modelTag; } return ""; } }
OntologyUtil { public String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy) { if (hierarchy != null){ final AutoBean<OntologyHierarchy> hierarchyAutoBean = getHierarchyAutoBean(hierarchy); String parentTag = hierarchyAutoBean.getTag(HIERARCHY_PARENT_MODEL_KEY); String modelTag = hierarchyAutoBean.getTag(HIERARCHY_MODEL_KEY); if (parentTag == null || modelTag == null) { modelTag = createHierarchyPathTag(hierarchy, hierarchyAutoBean, parentTag, modelTag); setParentTagOnChildren(modelTag, hierarchy); } return modelTag; } return ""; } private  OntologyUtil(); }
OntologyUtil { public String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy) { if (hierarchy != null){ final AutoBean<OntologyHierarchy> hierarchyAutoBean = getHierarchyAutoBean(hierarchy); String parentTag = hierarchyAutoBean.getTag(HIERARCHY_PARENT_MODEL_KEY); String modelTag = hierarchyAutoBean.getTag(HIERARCHY_MODEL_KEY); if (parentTag == null || modelTag == null) { modelTag = createHierarchyPathTag(hierarchy, hierarchyAutoBean, parentTag, modelTag); setParentTagOnChildren(modelTag, hierarchy); } return modelTag; } return ""; } private  OntologyUtil(); static OntologyUtil getInstance(); boolean createIriToAttrMap(List<OntologyHierarchy> result); boolean isValidIriMap(List<OntologyHierarchy> hierarchies); void buildIriToAttrMap(String ontologyAttr); OntologyHierarchyNameComparator getOntologyNameComparator(); void addUnclassifiedChild(List<OntologyHierarchy> children); OntologyHierarchy addUnclassifiedChild(OntologyHierarchy child); boolean isUnclassified(OntologyHierarchy hierarchy); String getUnclassifiedParentIri(OntologyHierarchy hierarchy); String getAttr(OntologyHierarchy hierarchy); Avu convertHierarchyToAvu(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(List<OntologyHierarchy> selectedHierarchies); List<String> getPathList(OntologyHierarchy hierarchy); List<List<String>> getAllPathsList(List<OntologyHierarchy> hierarchies); String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy); AvuList getBetaAvuList(); Avu getBetaAvu(); AvuList removeBetaAvu(List<Avu> result); OntologyHierarchy getHierarchyObject(); }
OntologyUtil { public String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy) { if (hierarchy != null){ final AutoBean<OntologyHierarchy> hierarchyAutoBean = getHierarchyAutoBean(hierarchy); String parentTag = hierarchyAutoBean.getTag(HIERARCHY_PARENT_MODEL_KEY); String modelTag = hierarchyAutoBean.getTag(HIERARCHY_MODEL_KEY); if (parentTag == null || modelTag == null) { modelTag = createHierarchyPathTag(hierarchy, hierarchyAutoBean, parentTag, modelTag); setParentTagOnChildren(modelTag, hierarchy); } return modelTag; } return ""; } private  OntologyUtil(); static OntologyUtil getInstance(); boolean createIriToAttrMap(List<OntologyHierarchy> result); boolean isValidIriMap(List<OntologyHierarchy> hierarchies); void buildIriToAttrMap(String ontologyAttr); OntologyHierarchyNameComparator getOntologyNameComparator(); void addUnclassifiedChild(List<OntologyHierarchy> children); OntologyHierarchy addUnclassifiedChild(OntologyHierarchy child); boolean isUnclassified(OntologyHierarchy hierarchy); String getUnclassifiedParentIri(OntologyHierarchy hierarchy); String getAttr(OntologyHierarchy hierarchy); Avu convertHierarchyToAvu(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(List<OntologyHierarchy> selectedHierarchies); List<String> getPathList(OntologyHierarchy hierarchy); List<List<String>> getAllPathsList(List<OntologyHierarchy> hierarchies); String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy); AvuList getBetaAvuList(); Avu getBetaAvu(); AvuList removeBetaAvu(List<Avu> result); OntologyHierarchy getHierarchyObject();  }