()
| 225 | } |
| 226 | |
| 227 | @Test |
| 228 | public void addLeaf() throws Exception { |
| 229 | final Branch branch = buildTestBranch(tree);; |
| 230 | |
| 231 | Leaf leaf = new Leaf(); |
| 232 | leaf.setDisplayName("Application Servers"); |
| 233 | leaf.setTsuid("0004"); |
| 234 | |
| 235 | assertTrue(branch.addLeaf(leaf, null)); |
| 236 | } |
| 237 | |
| 238 | @Test (expected = IllegalArgumentException.class) |
| 239 | public void addLeafNull() throws Exception { |
nothing calls this directly
no test coverage detected