TableSettings { public void setShowGrid(boolean showGrid) { this.showGrid = showGrid; }  String getValue(TableSettings.AvailableSettings setting); void setValue(TableSettings.AvailableSettings setting, String value); TableOrientation getOrientation(); void setOrientation(TableOrientation orientation); int[] getColumnWidths(); void setColumnWidths(int[] widths); int[] getColumnOrder(); void setColumnOrder(int[] order); ContentAlignment[] getRowHeaderAlignments(); void setRowHeaderAlignments(ContentAlignment[] alignments); ContentAlignment[] getColumnHeaderAlignments(); void setColumnHeaderAlignments(ContentAlignment[] alignments); BorderState[] getRowHeaderBorderStates(); void setRowHeaderBorderStates(BorderState[] borderStates); BorderState[] getColumnHeaderBorderStates(); void setColumnHeaderBorderStates(BorderState[] borderStates); int[] getRowHeights(); void setRowHeights(int[] heights); int[] getRowFontStyles(); int[] getRowHeaderTextAttributes(); void setRowFontStyles(int[] styles); void setRowTextAttributes(int[] textAttributes); void setColumnTextAttributes(int[] textAttributes); int[] getColumnFontStyles(); int[] getColumnHeaderTextAttributes(); void setColumnFontStyles(int[] styles); int[] getRowFontSizes(); void setRowFontSizes(int[] sizes); int[] getRowFontColors(); void setRowFontColors(int[] colors); int[] getRowHeaderBorderColors(); void setRowHeaderBorderColors(int[] colors); int[] getColumnHeaderBorderColors(); void setColumnHeaderBorderColors(int[] colors); int[] getColumnFontColors(); void setColumnFontColors(int[] colors); int[] getRowBackgroundColors(); void setRowBackgroundColors(int[] colors); int[] getColumnBackgroundColors(); void setColumnBackgroundColors(int[] colors); int[] getColumnFontSizes(); void setColumnFontSizes(int[] sizes); JVMFontFamily[] getRowFontNames(); void setRowFontNames(JVMFontFamily[] names); JVMFontFamily[] getColumnFontNames(); void setColumnFontNames(JVMFontFamily[] names); boolean isShowGrid(); void setShowGrid(boolean showGrid);  }
@Test public void testSetShowGrid() { assertTrue(settings.isShowGrid()); settings.setShowGrid(false); assertFalse(settings.isShowGrid()); assertEquals(settings.getValue(TableSettings.AvailableSettings.SHOW_GRID), Boolean.toString(false)); settings.setShowGrid(true); assertTrue(settings.isShowGrid()); assertEquals(settings.getValue(TableSettings.AvailableSettings.SHOW_GRID), Boolean.toString(true)); settings.setValue(TableSettings.AvailableSettings.SHOW_GRID, Boolean.toString(false)); assertFalse(settings.isShowGrid()); settings.setValue(TableSettings.AvailableSettings.SHOW_GRID, Boolean.toString(true)); assertTrue(settings.isShowGrid()); }