TableBuilder { public TableCellStyle findDefaultCellStyle(final int columnIndex) { final TableColumnImpl tableColumn = this.tableColumns.get(columnIndex); if (tableColumn == null) { return TableCellStyle.DEFAULT_CELL_STYLE; } final TableCellStyle style = tableColumn.getColumnDefaultCellStyle(); if (style == null) { return TableCellStyle.DEFAULT_CELL_STYLE; } return style; } TableBuilder(final PositionUtil positionUtil, final WriteUtil writeUtil, final XMLUtil xmlUtil,
                 final StylesContainer stylesContainer, final DataStyles format,
                 final boolean libreOfficeMode, final String name, final int rowCapacity,
                 final int columnCapacity, final ConfigItemMapEntrySet configEntry,
                 final int bufferSize); static TableBuilder create(final PositionUtil positionUtil, final WriteUtil writeUtil,
                                      final XMLUtil xmlUtil, final StylesContainer stylesContainer,
                                      final DataStyles format, final boolean libreOfficeMode,
                                      final String name, final int rowCapacity,
                                      final int columnCapacity); void addObserver(final NamedOdsFileWriter observer); void asyncFlushBeginTable(final TableAppender appender); void asyncFlushEndTable(final TableAppender appender); FastFullList<TableColumnImpl> getColumns(); ConfigItemMapEntry getConfigEntry(); int getRowCount(); TableRowImpl getRow(final Table table, final TableAppender appender, final int rowIndex); TableRowImpl getRow(final Table table, final TableAppender appender,
                               final String address); String getStyleName(); TableRowImpl nextRow(final Table table, final TableAppender appender); void setCellMerge(final Table table, final TableAppender appender, final int rowIndex,
                             final int colIndex, final int rowCount, final int colCount); @Deprecated void setCellMerge(final Table table, final TableAppender appender, final String address,
                             final int rowMerge, final int columnMerge); void setColumnStyle(final int col, final TableColumnStyle ts); void setColumnAttribute(final int col, final String attribute, final CharSequence value); void setColumnDefaultCellStyle(final int col, final TableCellStyle cellStyle); void setConfigItem(final String name, final String type, final String value); void updateConfigItem(final String item, final String value); void setStyle(final TableStyle style); void setRowsSpanned(final Table table, final TableAppender appender, final int rowIndex,
                               final int colIndex, final int n); String getName(); void setName(final String name); int getTableRowsUsedSize(); TableRowImpl getTableRow(final int r); TableCellStyle findDefaultCellStyle(final int columnIndex); List<Shape> getShapes(); void addShape(final Shape shape); void setAttribute(final String attribute, final CharSequence value); Map<String, CharSequence> getCustomValueByAttribute();  }
@Test public final void testFindDefaultCellStyle() { PowerMock.resetAll(); PowerMock.replayAll(); Assert.assertEquals(TableCellStyle.DEFAULT_CELL_STYLE, this.builder.findDefaultCellStyle(10)); PowerMock.verifyAll(); }