()
| 267 | } |
| 268 | |
| 269 | @Test |
| 270 | public void syncToStorageMilliseconds() throws Exception { |
| 271 | setupStorage(false); |
| 272 | note.setTSUID(TSUID); |
| 273 | note.setStartTime(1388450562500L); |
| 274 | note.setDescription("Synced!"); |
| 275 | note.syncToStorage(tsdb, false).joinUninterruptibly(); |
| 276 | final byte[] col = storage.getColumn(tsuid_row_key, |
| 277 | new byte[] { 1, 0x00, 0x27, 0x19, (byte) 0xC4 }); |
| 278 | note = JSON.parseToObject(col, Annotation.class); |
| 279 | assertEquals(TSUID, note.getTSUID()); |
| 280 | assertEquals("Synced!", note.getDescription()); |
| 281 | assertEquals("", note.getNotes()); |
| 282 | assertEquals(1388450562500L, note.getStartTime()); |
| 283 | } |
| 284 | |
| 285 | @Test |
| 286 | public void syncToStorageGlobal() throws Exception { |
nothing calls this directly
no test coverage detected