void function ( ) { mWriter . close ( ) ; Assert . assertTrue ( mOutStream . isClosed ( ) ) ; Assert . assertFalse ( mOutStream . isCanceled ( ) ) ; mWriter . close ( ) ; Assert . assertTrue ( mOutStream . isClosed ( ) ) ; Assert . assertFalse ( mOutStream . isCanceled ( ) ) ; }
tests basekeyvaluepartitionwriter #close after basekeyvaluepartitionwriter #close , expecting a close is a no-op after the previous close . concode_field_sep byte[] VALUE1 concode_elem_sep byte[] KEY1 concode_elem_sep ExpectedException mThrown concode_elem_sep ByteArrayOutStream mOutStream concode_elem_sep BaseKeyValuePartitionWriter mWriter concode_elem_sep byte[] VALUE2 concode_elem_sep byte[] KEY2 concode_field_sep void keyCount concode_elem_sep void byteCount concode_elem_sep void closeAfterCancel concode_elem_sep void putAndGet concode_elem_sep void canPutKeyValue concode_elem_sep void putAfterCancel concode_elem_sep void putAfterClose concode_elem_sep void put