void function ( ) { box . clear ( ) ; assertEquals ( "srini_string" , 0 , box . size ( ) ) ; for ( int loc0 = 0 ; loc0 < BOX_CAPACITY ; loc0 ++ ) { box . add ( b [ loc0 ] ) ; assertEquals ( "srini_string" + ( loc0 + 1 ) + "srini_string" , loc0 + 1 , box . size ( ) ) ; } }
test to check that size returns the correct number . concode_field_sep int NUM_BALLS_TO_TEST concode_elem_sep double BALL_UNIT_VOLUME concode_elem_sep double JUNIT_DOUBLE_DELTA concode_elem_sep Box box concode_elem_sep Ball[] b concode_elem_sep int TRIES_FOR_BALLS_TEST concode_elem_sep int BOX_CAPACITY concode_field_sep void testContains concode_elem_sep void testClear concode_elem_sep void setupBeforeTests concode_elem_sep void testGetBalls concode_elem_sep void testRemove concode_elem_sep void testAdd concode_elem_sep void testVolume concode_elem_sep void testIterator