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

Method copyConstructor

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

Source from the content-addressed store, hash-verified

65 }
66
67 @Test
68 public void copyConstructor() {
69 rule = new TreeRule(1);
70 rule.setCustomField("Custom");
71 rule.setDescription("Hello World!");
72 rule.setDisplayFormat("Display");
73 rule.setField("Field");
74 rule.setLevel(1);
75 rule.setNotes("Notes");
76 rule.setOrder(2);
77 rule.setRegexGroupIdx(4);
78 rule.setSeparator("\\.");
79
80 final TreeRule copy = new TreeRule(rule);
81 assertEquals(1, copy.getTreeId());
82 assertEquals("Custom", copy.getCustomField());
83 assertEquals("Hello World!", copy.getDescription());
84 assertEquals("Display", copy.getDisplayFormat());
85 assertEquals("Field", copy.getField());
86 assertEquals(1, copy.getLevel());
87 assertEquals("Notes", copy.getNotes());
88 assertEquals(2, copy.getOrder());
89 assertEquals(4, copy.getRegexGroupIdx());
90 assertEquals("\\.", copy.getSeparator());
91 }
92
93 @Test
94 public void setRegex() {

Callers

nothing calls this directly

Calls 15

getTreeIdMethod · 0.95
getCustomFieldMethod · 0.95
getDescriptionMethod · 0.95
getDisplayFormatMethod · 0.95
getFieldMethod · 0.95
getLevelMethod · 0.95
getNotesMethod · 0.95
getOrderMethod · 0.95
getRegexGroupIdxMethod · 0.95
getSeparatorMethod · 0.95
setCustomFieldMethod · 0.80
setDisplayFormatMethod · 0.80

Tested by

no test coverage detected