tests basekeyvaluepartitionwriter #bytecount works . 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 closeAfterClose concode_elem_sep void keyCount 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
void function ( ) { mWriter . put ( KEY1 , VALUE1 ) ; Assert . assertTrue ( mWriter . byteCount ( ) > 0 ) ; }