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

Method syncToStorage

test/meta/TestAnnotation.java:239–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237 }
238
239 @Test
240 public void syncToStorage() throws Exception {
241 setupStorage(false);
242 note.setTSUID(TSUID);
243 note.setStartTime(1388450562L);
244 note.setDescription("Synced!");
245 note.syncToStorage(tsdb, false).joinUninterruptibly();
246 final byte[] col = storage.getColumn(tsuid_row_key,
247 new byte[] { 1, 0x0A, 0x02 });
248 note = JSON.parseToObject(col, Annotation.class);
249 assertEquals(TSUID, note.getTSUID());
250 assertEquals("Synced!", note.getDescription());
251 assertEquals("My Notes", note.getNotes());
252 }
253
254 @Test
255 public void syncToStorageSalted() throws Exception {

Calls 9

setupStorageMethod · 0.95
parseToObjectMethod · 0.95
getColumnMethod · 0.80
setStartTimeMethod · 0.65
setTSUIDMethod · 0.45
setDescriptionMethod · 0.45
getTSUIDMethod · 0.45
getDescriptionMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected