MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / copyConstructor

Method copyConstructor

test/tree/TestBranch.java:79–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

buildTestBranchMethod · 0.95
getTreeIdMethod · 0.95
getDisplayNameMethod · 0.95
getBranchesMethod · 0.95
getLeavesMethod · 0.95
getPathMethod · 0.95

Tested by

no test coverage detected