| 131 | } |
| 132 | |
| 133 | @Test |
| 134 | public void emptyRow() throws Exception { |
| 135 | ArrayList<KeyValue> kvs = new ArrayList<KeyValue>(0); |
| 136 | ArrayList<Annotation> annotations = new ArrayList<Annotation>(0); |
| 137 | final KeyValue kv = compactionq.compact(kvs, annotations, null); |
| 138 | assertNull(kv); |
| 139 | |
| 140 | // We had nothing to do so... |
| 141 | // ... verify there were no put. |
| 142 | verify(tsdb, never()).put(anyBytes(), anyBytes(), anyBytes(), anyLong()); |
| 143 | // ... verify there were no delete. |
| 144 | verify(tsdb, never()).delete(anyBytes(), any(byte[][].class)); |
| 145 | } |
| 146 | |
| 147 | @Test |
| 148 | public void oneCellRow() throws Exception { |