void function ( ) { Block loc0 = new EmptyBlock ( 5 , 5 ) ; BlockContainer loc1 = new BlockContainer ( new GridArrangement ( 2 , 3 ) ) ; loc1 . add ( loc0 ) ; Size2D loc2 = loc1 . arrange ( null , RectangleConstraint . NONE . toFixedWidth ( 30.0 ) ) ; assertEquals ( 30.0 , loc2 . getWidth ( ) , EPSILON ) ; assertEquals ( 10.0 , loc2 . getHeight ( ) , EPSILON ) ; }
the arrangement should be able to handle less blocks than grid spaces . concode_field_sep double EPSILON concode_field_sep void testNR concode_elem_sep void testGridNotFull_FF concode_elem_sep void testGridNotFull_NN concode_elem_sep void testNullBlock_FF concode_elem_sep void testNullBlock_NN concode_elem_sep void testNN concode_elem_sep void testRR concode_elem_sep void testSerialization concode_elem_sep void testFN concode_elem_sep void testRF concode_elem_sep BlockContainer createTestContainer1 concode_elem_sep void testCloning concode_elem_sep void testGridNotFull_FR concode_elem_sep void testRN concode_elem_sep void testNullBlock_FN concode_elem_sep void testNF concode_elem_sep void testEquals concode_elem_sep void testNullBlock_FR