void function ( ) { long loc0 = mLockManager . lockBlock ( TEST_SESSION_ID , TEST_BLOCK_ID , BlockLockType . READ ) ; long loc1 = mLockManager . lockBlock ( TEST_SESSION_ID , TEST_BLOCK_ID , BlockLockType . READ ) ; Assert . assertNotEquals ( loc0 , loc1 ) ; }
tests the blocklockmanager #lockblock long , long , blocklocktype method . concode_field_sep BlockLockManager mLockManager concode_elem_sep long TEST_BLOCK_ID concode_elem_sep ExpectedException mThrown concode_elem_sep long TEST_SESSION_ID concode_elem_sep TemporaryFolder mFolder concode_field_sep void lockAcrossSessions concode_elem_sep void stress concode_elem_sep void validateLockIdWithNoRecord concode_elem_sep void unlockNonExistingLock concode_elem_sep void dontReuseLock concode_elem_sep void before concode_elem_sep void reuseLock concode_elem_sep void readBlocksWrite concode_elem_sep void validateLockIdWithWrongBlockId concode_elem_sep void setMaxLocks concode_elem_sep void lockExpectingHang concode_elem_sep void grabManyLocks concode_elem_sep void validateLockIdWithWrongSessionId concode_elem_sep void cleanupSession concode_elem_sep void after