void function ( ) { mTestStream . setWrittenBytes ( BLOCK_LENGTH ) ; Assert . assertEquals ( 0L , mTestStream . remaining ( ) ) ; mTestStream . setWrittenBytes ( 40L ) ; Assert . assertEquals ( BLOCK_LENGTH - 40L , mTestStream . remaining ( ) ) ; mTestStream . setWrittenBytes ( 0L ) ; Assert . assertEquals ( BLOCK_LENGTH , mTestStream . remaining ( ) ) ; }
tests for the bufferedblockoutstream #remaining method . 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 writeToClosed