void function ( ) { mThrown . expect ( ClosedChannelException . class ) ; ByteBuffer loc0 = BufferUtils . getIncreasingByteBuffer ( ( int ) TEST_BLOCK_SIZE ) ; Assert . assertEquals ( TEST_BLOCK_SIZE , mWriter . append ( loc0 ) ) ; mWriter . close ( ) ; mWriter . append ( loc0 ) ; }
tests that a closedchannelexception is thrown when trying to append to a channel afterclosing it . concode_field_sep LocalFileBlockWriter mWriter concode_elem_sep ExpectedException mThrown concode_elem_sep TemporaryFolder mFolder concode_elem_sep long TEST_BLOCK_SIZE concode_elem_sep String mTestFilePath concode_field_sep void before concode_elem_sep void getChannel concode_elem_sep void append