tests that writing to a closed stream throws an exception . concode_field_sep byte[] INCREASING_BYTES concode_elem_sep long BLOCK_LENGTH concode_elem_sep TestBufferedBlockOutStream mTestStream concode_elem_sep ExpectedException mThrown concode_field_sep void byteArrayAtOffset concode_elem_sep void byteArrayWrite concode_elem_sep void before concode_elem_sep void doubleFlush concode_elem_sep void singleByteWrite concode_elem_sep void writePastBlock concode_elem_sep void remaining
void function ( ) { mTestStream . close ( ) ; mThrown . expect ( IllegalStateException . class ) ; mThrown . expectMessage ( PreconditionMessage . ERR_CLOSED_BLOCK_OUT_STREAM . toString ( ) ) ; mTestStream . write ( 0 ) ; }