()
| 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 { |
nothing calls this directly
no test coverage detected