@Test public void isLeafReturnsTrueWhenDirectStaffAndStaffAreEmpty() { var node = new HierarchyTreeNode(userMock); assertThat(node.isLeaf()).isTrue(); }
public boolean isLeaf() { return staff.isEmpty() && directStaff.isEmpty(); }
HierarchyTreeNode implements Iterable<HierarchyTreeNode>, Streamable<HierarchyTreeNode>, Serializable { public boolean isLeaf() { return staff.isEmpty() && directStaff.isEmpty(); } }
HierarchyTreeNode implements Iterable<HierarchyTreeNode>, Streamable<HierarchyTreeNode>, Serializable { public boolean isLeaf() { return staff.isEmpty() && directStaff.isEmpty(); } HierarchyTreeNode(User user); }
HierarchyTreeNode implements Iterable<HierarchyTreeNode>, Streamable<HierarchyTreeNode>, Serializable { public boolean isLeaf() { return staff.isEmpty() && directStaff.isEmpty(); } HierarchyTreeNode(User user); boolean isLeaf(); boolean isRoot(); HierarchyTreeNode getRoot(); void addDirectStaffMember(HierarchyTreeNode staffNode); void removeDirectStaffMember(HierarchyTreeNode staffNode); @Override Iterator<HierarchyTreeNode> iterator(); @Override boolean equals(Object obj); @Override int hashCode(); }
HierarchyTreeNode implements Iterable<HierarchyTreeNode>, Streamable<HierarchyTreeNode>, Serializable { public boolean isLeaf() { return staff.isEmpty() && directStaff.isEmpty(); } HierarchyTreeNode(User user); boolean isLeaf(); boolean isRoot(); HierarchyTreeNode getRoot(); void addDirectStaffMember(HierarchyTreeNode staffNode); void removeDirectStaffMember(HierarchyTreeNode staffNode); @Override Iterator<HierarchyTreeNode> iterator(); @Override boolean equals(Object obj); @Override int hashCode();  }