Call Append on a column for the first time and validate that it was created.
()
| 227 | * created. |
| 228 | */ |
| 229 | @Test |
| 230 | public void appendOnceNoReturnRead() throws Exception { |
| 231 | client.setFlushInterval(FAST_FLUSH); |
| 232 | truncateTable(table); |
| 233 | final double write_time = System.currentTimeMillis(); |
| 234 | final AppendRequest append = new AppendRequest(table, "a", family, "q", "val"); |
| 235 | final GetRequest get = new GetRequest(table, "a", family, "q"); |
| 236 | assertNull(client.append(append).join()); |
| 237 | final ArrayList<KeyValue> kvs = client.get(get).join(); |
| 238 | assertSizeIs(1, kvs); |
| 239 | final KeyValue kv = kvs.get(0); |
| 240 | assertEq("a", kv.key()); |
| 241 | assertEq(family, kv.family()); |
| 242 | assertEq("q", kv.qualifier()); |
| 243 | assertEq("val", kv.value()); |
| 244 | final double kvts = kv.timestamp(); |
| 245 | assertEquals(write_time, kvts, 5000.0); // Within five seconds. |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * Call append on a column twice, the first time to create it, the second to |
nothing calls this directly
no test coverage detected