void () { final Insets margin = new Insets(11,12,13,14); final int hGap = 15; final int vGap = 16; final RadContainer grid = createGrid(2, 3, margin, hGap, vGap); { final LayoutManager oldLayout = grid.getLayout(); GridChangeUtil.insertRowOrColumn(grid, 1, false, false); final GridLayoutManager newLayout = (GridLayoutManager)grid.getLayout(); assertGridDimensions(grid, 2, 4); assertTrue(oldLayout != newLayout); assertTrue(margin != newLayout.getMargin()); assertEquals(margin, newLayout.getMargin()); assertEquals(hGap, newLayout.getHGap()); assertEquals(vGap, newLayout.getVGap()); } { final LayoutManager oldLayout = grid.getLayout(); GridChangeUtil.splitRow(grid, 1); final GridLayoutManager newLayout = (GridLayoutManager)grid.getLayout(); assertGridDimensions(grid, 3, 4); assertTrue(oldLayout != newLayout); assertTrue(margin != newLayout.getMargin()); assertEquals(margin, newLayout.getMargin()); assertEquals(hGap, newLayout.getHGap()); assertEquals(vGap, newLayout.getVGap()); } }