test for the localfileblockwriter #append bytebuffer method . 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 close
void function ( ) { ByteBuffer loc0 = BufferUtils . getIncreasingByteBuffer ( ( int ) TEST_BLOCK_SIZE ) ; Assert . assertEquals ( TEST_BLOCK_SIZE , mWriter . append ( loc0 ) ) ; Assert . assertEquals ( TEST_BLOCK_SIZE , mWriter . append ( loc0 ) ) ; mWriter . close ( ) ; Assert . assertEquals ( 2 * TEST_BLOCK_SIZE , new File ( mTestFilePath ) . length ( ) ) ; }