()
| 189 | } |
| 190 | |
| 191 | @Test |
| 192 | public void addLeafExists() throws Exception { |
| 193 | final Tree tree = TestTree.buildTestTree(); |
| 194 | final Branch branch = buildTestBranch(tree);; |
| 195 | |
| 196 | Leaf leaf = new Leaf(); |
| 197 | leaf.setDisplayName("Alarms"); |
| 198 | leaf.setTsuid("ABCD"); |
| 199 | |
| 200 | assertFalse(branch.addLeaf(leaf, tree)); |
| 201 | assertEquals(2, branch.getBranches().size()); |
| 202 | assertEquals(2, branch.getLeaves().size()); |
| 203 | assertNull(tree.getCollisions()); |
| 204 | } |
| 205 | |
| 206 | @Test |
| 207 | public void addLeafCollision() throws Exception { |
nothing calls this directly
no test coverage detected