()
| 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 { |
no test coverage detected