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

Method copyConstructor

test/tree/TestTree.java:81–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 }
80
81 @Test
82 public void copyConstructor() {
83 final Tree tree = buildTestTree();
84 tree.setStrictMatch(true);
85 final Tree copy = new Tree(tree);
86
87 assertEquals(1, copy.getTreeId());
88 assertEquals(1356998400L, copy.getCreated());
89 assertEquals("My Description", copy.getDescription());
90 assertEquals("Test Tree", copy.getName());
91 assertEquals("Details", copy.getNotes());
92 assertTrue(copy.getStrictMatch());
93 assertTrue(copy.getEnabled());
94 assertNull(copy.getCollisions());
95 assertNull(copy.getNotMatched());
96 assertNotNull(copy.getRules());
97 assertTrue(copy.getRules() != tree.getRules());
98 }
99
100 @Test
101 public void copyChanges() throws Exception {

Callers

nothing calls this directly

Calls 12

buildTestTreeMethod · 0.95
setStrictMatchMethod · 0.95
getTreeIdMethod · 0.95
getCreatedMethod · 0.95
getDescriptionMethod · 0.95
getNameMethod · 0.95
getNotesMethod · 0.95
getStrictMatchMethod · 0.95
getEnabledMethod · 0.95
getCollisionsMethod · 0.95
getNotMatchedMethod · 0.95
getRulesMethod · 0.95

Tested by

no test coverage detected