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

Method putWithLock

test/TestPutRequest.java:118–128  ·  view source on GitHub ↗

Test put with a specific row lock @throws Exception

()

Source from the content-addressed store, hash-verified

116 * @throws Exception
117 */
118 @Test
119 public void putWithLock() throws Exception {
120 final PutRequest put = new PutRequest(TABLE, KEY, FAMILY, QUALIFIER, VALUE,
121 LOCK);
122 stubbing(put);
123 client.put(put);
124 Mockito.verify(client).sendRpcToRegion(put);
125 Mockito.verify(regionclient).sendRpc(put);
126 assertTrue(sendPut);
127 assertEquals(1, num_puts.get());
128 }
129
130 /**
131 * Test put with a specific timestamp and row lock

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