@Test
public void testGetDecimalPlaces() {
ComponentTableModel componentTableModel = Mockito.mock(ComponentTableModel.class);
TableCellSettings settings = Mockito.mock(TableCellSettings.class);
AbstractComponent compWithFeed = Mockito.mock(AbstractComponent.class);
FeedProvider mockFp = Mockito.mock(FeedProvider.class);
Mockito.when(compWithFeed.getCapability(FeedProvider.class)).thenReturn(mockFp);
AbstractComponent compWithoutFeed = Mockito.mock(AbstractComponent.class);
Mockito.when(componentTableModel.getStoredValueAt(Mockito.eq(0), Mockito.anyInt())).thenReturn(compWithFeed);
Mockito.when(componentTableModel.getCellSettings(Mockito.anyString())).thenReturn(settings);
Mockito.when(settings.getNumberOfDecimals()).thenReturn(-1);
Mockito.when(mockFp.getFeedType()).thenReturn(FeedType.FLOATING_POINT);
controller = new TableControlPanelController(manifestation, labeledTable, componentTableModel);
Mockito.when(labeledTable.getSelectedRows()).thenReturn(new int[] {0});
Mockito.when(labeledTable.getSelectedColumns()).thenReturn(new int[] {0});
Assert.assertEquals(controller.getDecimalPlaces().intValue(),2);
Mockito.when(mockFp.getFeedType()).thenReturn(FeedType.INTEGER);
Assert.assertEquals(controller.getDecimalPlaces().intValue(),0);
Mockito.when(componentTableModel.getStoredValueAt(Mockito.anyInt(), Mockito.anyInt())).thenReturn(compWithoutFeed);
Mockito.when(labeledTable.getSelectedRows()).thenReturn(new int[] {1});
Assert.assertEquals(controller.getDecimalPlaces().intValue(), -1);