use of org.apache.hadoop.hive.metastore.api.LockRequest in project hive by apache.
the class TestLock method testAcquireLockCheckUser.
@Test
public void testAcquireLockCheckUser() throws Exception {
readLock.acquire();
verify(mockMetaStoreClient).lock(requestCaptor.capture());
LockRequest actualRequest = requestCaptor.getValue();
assertEquals(USER, actualRequest.getUser());
}
Aggregations