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

Method addLeaf

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

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

buildTestBranchMethod · 0.95
setDisplayNameMethod · 0.95
setTsuidMethod · 0.95
addLeafMethod · 0.95

Tested by

no test coverage detected