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

Method putWithLockAndTime

test/TestPutRequest.java:134–144  ·  view source on GitHub ↗

Test put with a specific timestamp and row lock @throws Exception

()

Source from the content-addressed store, hash-verified

132 * @throws Exception
133 */
134 @Test
135 public void putWithLockAndTime() throws Exception {
136 final PutRequest put = new PutRequest(TABLE, KEY, FAMILY, QUALIFIER, VALUE,
137 TIMESTAMP_LONG, LOCK);
138 stubbing(put);
139 client.put(put);
140 Mockito.verify(client).sendRpcToRegion(put);
141 Mockito.verify(regionclient).sendRpc(put);
142 assertTrue(sendPut);
143 assertEquals(1, num_puts.get());
144 }
145
146 /**
147 * Test put with multiple column qualifier, values 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