Regression test for issue #25.
()
| 2198 | |
| 2199 | /** Regression test for issue #25. */ |
| 2200 | @Test |
| 2201 | public void regression25() throws Exception { |
| 2202 | client.setFlushInterval(FAST_FLUSH); |
| 2203 | final String table1 = args[0] + "1"; |
| 2204 | final String table2 = args[0] + "2"; |
| 2205 | final String family = args[1]; |
| 2206 | createOrTruncateTable(client, table1, family); |
| 2207 | createOrTruncateTable(client, table2, family); |
| 2208 | for (int i = 0; i < 2; i++) { |
| 2209 | final PutRequest put; |
| 2210 | final String key = 'k' + String.valueOf(i); |
| 2211 | if (i % 2 == 0) { |
| 2212 | put = new PutRequest(table1, key, family, "q", "v"); |
| 2213 | } else { |
| 2214 | put = new PutRequest(table2, key, family, "q", "v"); |
| 2215 | } |
| 2216 | final DeleteRequest delete = new DeleteRequest(put.table(), put.key()); |
| 2217 | client.delete(delete); |
| 2218 | client.put(put); |
| 2219 | } |
| 2220 | client.flush().joinUninterruptibly(); |
| 2221 | } |
| 2222 | |
| 2223 | /** Regression test for issue #40 (which was actually Netty bug #474). */ |
| 2224 | @Test |
nothing calls this directly
no test coverage detected