void function ( ) { Assert . assertEquals ( Constants . KB * 2L , mInfo . getUsedBytes ( ) ) ; mInfo . updateUsedBytes ( "srini_string" , Constants . KB * 2L ) ; Assert . assertEquals ( Constants . KB * 3L , mInfo . getUsedBytes ( ) ) ; Assert . assertEquals ( Constants . KB * 2L , ( long ) mInfo . getUsedBytesOnTiers ( ) . get ( "srini_string" ) ) ; }
tests the masterworkerinfo #updateusedbytes string , long method . concode_field_sep Map<String,Long> TOTAL_BYTES_ON_TIERS concode_elem_sep StorageTierAssoc GLOBAL_STORAGE_TIER_ASSOC concode_elem_sep Map<String,Long> USED_BYTES_ON_TIERS concode_elem_sep ExpectedException mThrown concode_elem_sep MasterWorkerInfo mInfo concode_elem_sep List<String> STORAGE_TIER_ALIASES concode_elem_sep Set<Long> NEW_BLOCKS concode_field_sep void registerTest concode_elem_sep void workerInfoGenerationTest concode_elem_sep void before concode_elem_sep void blockOperationTest concode_elem_sep void updateToRemovedBlockTest concode_elem_sep void updateUsedBytesTest concode_elem_sep void getFreeBytesOnTiersTest concode_elem_sep void registerWithDifferentNumberOfTiersTest concode_elem_sep void registerAgainTest