MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / simplePut

Method simplePut

test/TestPutRequest.java:71–80  ·  view source on GitHub ↗

Tests simple put that uses the current timestamp @throws Exception

()

Source from the content-addressed store, hash-verified

69 * @throws Exception
70 */
71 @Test
72 public void simplePut() throws Exception {
73 final PutRequest put = new PutRequest(TABLE,KEY, FAMILY, QUALIFIER, VALUE);
74 stubbing(put);
75 client.put(put);
76 Mockito.verify(client).sendRpcToRegion(put);
77 Mockito.verify(regionclient).sendRpc(put);
78 assertTrue(sendPut);
79 assertEquals(1, num_puts.get());
80 }
81
82 /**
83 * Test put request with specific timestamp

Callers

nothing calls this directly

Calls 5

stubbingMethod · 0.95
putMethod · 0.80
sendRpcToRegionMethod · 0.80
sendRpcMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected