@Test(expected=UnsupportedOperationException.class) public void testGetChildren_Unmodifiable(){ labelNode.getChildren().add(new LabelNodeImpl("")); }
public Set<LabelNode> getChildren() { return Collections.unmodifiableSet(childrenNodes); }
LabelNodeImpl implements LabelNode, Serializable { public Set<LabelNode> getChildren() { return Collections.unmodifiableSet(childrenNodes); } }
LabelNodeImpl implements LabelNode, Serializable { public Set<LabelNode> getChildren() { return Collections.unmodifiableSet(childrenNodes); } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); }
LabelNodeImpl implements LabelNode, Serializable { public Set<LabelNode> getChildren() { return Collections.unmodifiableSet(childrenNodes); } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); boolean addChildNode(LabelNode node); boolean removeChildNode(LabelNode node); Set<String> getChildrenLabels(); Set<String> getDescendantLabels(); Set<LabelNode> getChildren(); String getName(); LabelNode getParent(); boolean hasChildren(); boolean hasParent(); @Override int hashCode(); @Override boolean equals(Object obj); }
LabelNodeImpl implements LabelNode, Serializable { public Set<LabelNode> getChildren() { return Collections.unmodifiableSet(childrenNodes); } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); boolean addChildNode(LabelNode node); boolean removeChildNode(LabelNode node); Set<String> getChildrenLabels(); Set<String> getDescendantLabels(); Set<LabelNode> getChildren(); String getName(); LabelNode getParent(); boolean hasChildren(); boolean hasParent(); @Override int hashCode(); @Override boolean equals(Object obj);  }