void () { final RadContainer grid = SampleGrid.create(); try { // should cause exception GridChangeUtil.splitRow(grid, -1); assertTrue(false); } catch (IllegalArgumentException ok) { } try { // should cause exception GridChangeUtil.splitRow(grid, SampleGrid.ORIGINAL_ROWS); assertTrue(false); } catch (IllegalArgumentException ok) { } // should be ok GridChangeUtil.splitRow(grid, SampleGrid.ORIGINAL_ROWS - 1); assertGridDimensions(grid, SampleGrid.ORIGINAL_ROWS + 1, SampleGrid.ORIGINAL_COLUMNS); try { // should cause exception GridChangeUtil.splitColumn(grid, -1); assertTrue(false); } catch (IllegalArgumentException ok) { } try { // should cause exception GridChangeUtil.splitColumn(grid, SampleGrid.ORIGINAL_COLUMNS); assertTrue(false); } catch (IllegalArgumentException ok) { } // should be ok GridChangeUtil.splitColumn(grid, SampleGrid.ORIGINAL_COLUMNS - 1); assertGridDimensions(grid, SampleGrid.ORIGINAL_ROWS + 1, SampleGrid.ORIGINAL_COLUMNS + 1); try { // should cause exception GridChangeUtil.canDeleteCell(grid, -1, false); assertTrue(false); } catch (IllegalArgumentException ok) { } try { // should cause exception GridChangeUtil.canDeleteCell(grid, ((GridLayoutManager)grid.getLayout()).getColumnCount(), false); assertTrue(false); } catch (IllegalArgumentException ok) { } }