@Test public void testErrorMenu() throws IOException { TopicMapIF tm = load("error-menu.ltm"); TopicIF topic = getTopicById(tm, "menu1"); Assert.assertTrue("menu topic not found", topic != null); try { Menu menu = new Menu(topic); menu.getChildren(); Assert.fail("menu with invalid condition queries was accepted"); } catch (OntopiaRuntimeException e) { } }
public List getChildren() { return buildChildren(topic); }
Menu { public List getChildren() { return buildChildren(topic); } }
Menu { public List getChildren() { return buildChildren(topic); } Menu(TopicIF topic); }
Menu { public List getChildren() { return buildChildren(topic); } Menu(TopicIF topic); String getTitle(); TopicIF getTopic(); TopicIF getOwner(); List getChildren(); boolean getHasChildren(); void setTitle(String title); void setOwner(TopicIF owner); Heading createHeading(String title); Item createItem(String title); void delete(); }
Menu { public List getChildren() { return buildChildren(topic); } Menu(TopicIF topic); String getTitle(); TopicIF getTopic(); TopicIF getOwner(); List getChildren(); boolean getHasChildren(); void setTitle(String title); void setOwner(TopicIF owner); Heading createHeading(String title); Item createItem(String title); void delete();  }