void function ( ) { long loc0 = 1 ; mThrown . expect ( BlockDoesNotExistException . class ) ; mThrown . expectMessage ( ExceptionMessage . LOCK_RECORD_NOT_FOUND_FOR_LOCK_ID . getMessage ( loc0 ) ) ; mLockManager . validateLock ( TEST_SESSION_ID , TEST_BLOCK_ID , loc0 ) ; }
tests that an exception is thrown when trying to validate a lock of a block via blocklockmanager #validatelock long , long , long which is not locked . 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 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 lockBlock concode_elem_sep void grabManyLocks concode_elem_sep void validateLockIdWithWrongSessionId concode_elem_sep void cleanupSession concode_elem_sep void after