Attempt to write a column family that doesn't exist.
()
| 518 | |
| 519 | /** Attempt to write a column family that doesn't exist. */ |
| 520 | @Test |
| 521 | public void putNonexistentFamily() throws Exception { |
| 522 | client.setFlushInterval(FAST_FLUSH); |
| 523 | final PutRequest put = new PutRequest(table, "k", family + family, |
| 524 | "q", "val"); |
| 525 | try { |
| 526 | client.put(put).join(); |
| 527 | } catch (NoSuchColumnFamilyException e) { |
| 528 | assertEquals(put, e.getFailedRpc()); |
| 529 | return; |
| 530 | } |
| 531 | throw new AssertionError("Should never be here"); |
| 532 | } |
| 533 | |
| 534 | /** Send a bunch of edits with one that references a non-existent family. */ |
| 535 | @Test |
nothing calls this directly
no test coverage detected