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

Method syncToStorage

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

Source from the content-addressed store, hash-verified

196 }
197
198 @Test
199 public void syncToStorage() throws Exception {
200 meta = new UIDMeta(UniqueIdType.METRIC, "000001");
201 meta.setDisplayName("New Display Name");
202 meta.syncToStorage(tsdb, false).joinUninterruptibly();
203 assertEquals("New Display Name", meta.getDisplayName());
204 assertEquals("MyNotes", meta.getNotes());
205 assertEquals(1328140801, meta.getCreated());
206 }
207
208 @Test
209 public void syncToStorageOverwrite() throws Exception {

Callers 6

syncToStorageNullTypeMethod · 0.45
syncToStorageNullUIDMethod · 0.45
syncToStorageEmptyUIDMethod · 0.45
syncToStorageNoSuchMethod · 0.45

Calls 4

setDisplayNameMethod · 0.45
getDisplayNameMethod · 0.45
getNotesMethod · 0.45
getCreatedMethod · 0.45

Tested by

no test coverage detected