()
| 77 | } |
| 78 | |
| 79 | @Test |
| 80 | public void copyConstructor() { |
| 81 | final Branch branch = buildTestBranch(tree); |
| 82 | final Branch copy = new Branch(branch); |
| 83 | assertEquals(1, copy.getTreeId()); |
| 84 | assertEquals("ROOT", copy.getDisplayName()); |
| 85 | assertNotNull(copy.getBranches()); |
| 86 | assertTrue(copy.getBranches() != branch.getBranches()); |
| 87 | assertNotNull(copy.getLeaves()); |
| 88 | assertTrue(copy.getLeaves() != branch.getLeaves()); |
| 89 | assertNotNull(copy.getPath()); |
| 90 | assertTrue(copy.getPath() != branch.getPath()); |
| 91 | } |
| 92 | |
| 93 | @Test |
| 94 | public void testHashCode() { |
nothing calls this directly
no test coverage detected