| 261 | } |
| 262 | |
| 263 | @Test |
| 264 | public void oneCellRowMS() throws Exception { |
| 265 | ArrayList<KeyValue> kvs = new ArrayList<KeyValue>(1); |
| 266 | ArrayList<Annotation> annotations = new ArrayList<Annotation>(0); |
| 267 | final byte[] qual = { (byte) 0xF0, 0x00, 0x00, 0x07 }; |
| 268 | byte[] val = Bytes.fromLong(42L); |
| 269 | kvs.add(makekv(qual, val)); |
| 270 | final KeyValue kv = compactionq.compact(kvs, annotations, null); |
| 271 | assertArrayEquals(qual, kv.qualifier()); |
| 272 | assertArrayEquals(val, kv.value()); |
| 273 | |
| 274 | // We had nothing to do so... |
| 275 | // ... verify there were no put. |
| 276 | verify(tsdb, never()).put(anyBytes(), anyBytes(), anyBytes(), anyLong()); |
| 277 | // ... verify there were no delete. |
| 278 | verify(tsdb, never()).delete(anyBytes(), any(byte[][].class)); |
| 279 | } |
| 280 | |
| 281 | @Test |
| 282 | public void twoCellRow() throws Exception { |