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

Method createConstructor

test/meta/TestUIDMeta.java:106–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 @Test
107 public void createConstructor() {
108 PowerMockito.mockStatic(System.class);
109 when(System.currentTimeMillis()).thenReturn(1357300800000L);
110 meta = new UIDMeta(UniqueIdType.TAGK, new byte[] { 1, 0, 0 }, "host");
111 assertEquals(1357300800000L / 1000, meta.getCreated());
112 assertEquals(UniqueId.uidToString(new byte[] { 1, 0, 0 }), meta.getUID());
113 assertEquals("host", meta.getName());
114 }
115
116 @Test
117 public void serialize() throws Exception {

Callers

nothing calls this directly

Calls 5

uidToStringMethod · 0.95
getNameMethod · 0.65
currentTimeMillisMethod · 0.45
getCreatedMethod · 0.45
getUIDMethod · 0.45

Tested by

no test coverage detected