()
| 252 | } |
| 253 | |
| 254 | @Test |
| 255 | public void syncToStorageSalted() throws Exception { |
| 256 | setupStorage(true); |
| 257 | note.setTSUID(TSUID); |
| 258 | note.setStartTime(1388450562L); |
| 259 | note.setDescription("Synced!"); |
| 260 | note.syncToStorage(tsdb, false).joinUninterruptibly(); |
| 261 | final byte[] col = storage.getColumn(tsuid_row_key, |
| 262 | new byte[] { 1, 0x0A, 0x02 }); |
| 263 | note = JSON.parseToObject(col, Annotation.class); |
| 264 | assertEquals(TSUID, note.getTSUID()); |
| 265 | assertEquals("Synced!", note.getDescription()); |
| 266 | assertEquals("My Notes", note.getNotes()); |
| 267 | } |
| 268 | |
| 269 | @Test |
| 270 | public void syncToStorageMilliseconds() throws Exception { |
nothing calls this directly
no test coverage detected