| 145 | } |
| 146 | |
| 147 | @Test |
| 148 | public void oneCellRow() throws Exception { |
| 149 | ArrayList<KeyValue> kvs = new ArrayList<KeyValue>(1); |
| 150 | ArrayList<Annotation> annotations = new ArrayList<Annotation>(0); |
| 151 | final byte[] qual = { 0x00, 0x07 }; |
| 152 | final byte[] val = Bytes.fromLong(42L); |
| 153 | kvs.add(makekv(qual, val)); |
| 154 | final KeyValue kv = compactionq.compact(kvs, annotations, null); |
| 155 | assertArrayEquals(qual, kv.qualifier()); |
| 156 | assertArrayEquals(val, kv.value()); |
| 157 | |
| 158 | // We had nothing to do so... |
| 159 | // ... verify there were no put. |
| 160 | verify(tsdb, never()).put(anyBytes(), anyBytes(), anyBytes(), anyLong()); |
| 161 | // ... verify there were no delete. |
| 162 | verify(tsdb, never()).delete(anyBytes(), any(byte[][].class)); |
| 163 | } |
| 164 | |
| 165 | @Test |
| 166 | public void oneCellAppend() throws Exception { |