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

Method syncToStorageOverwrite

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

Source from the content-addressed store, hash-verified

206 }
207
208 @Test
209 public void syncToStorageOverwrite() throws Exception {
210 meta = new UIDMeta(UniqueIdType.METRIC, "000001");
211 meta.setDisplayName("New Display Name");
212 meta.syncToStorage(tsdb, true).joinUninterruptibly();
213 assertEquals("New Display Name", meta.getDisplayName());
214 assertTrue(meta.getNotes().isEmpty());
215 }
216
217 @Test (expected = IllegalStateException.class)
218 public void syncToStorageNoChanges() throws Exception {

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.80
setDisplayNameMethod · 0.45
syncToStorageMethod · 0.45
getDisplayNameMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected