ExcelChartSheetDefault implements ExcelChartSheet { @Override public Row createRow(final int rowNumber) { final Row row = excelSheet.createRow(rowNumber); if (rowNumber < 1) { row.setHeight((short) ROWHEADERHEIGHT); } else { row.setHeight((short) ROWHEIGHT); } return row; } ExcelChartSheetDefault(final Workbook workbook, final String excelSheetName); @Override void writeCell(final Object value, final Row row, final int column); @Override Row createRow(final int rowNumber); @Override Row createRow(); @Override void setColumnWidth(final int collNumber, final int size); @Override Chart createChartAndLegend(); @Override ChartDataSource<?> getCategoryChartDataSource(); @Override List<ChartDataSource<Number>> getValuesChartDataSource();  }
@Test public void createRow() throws Exception { final ExcelChartSheet excelChartSheet = new ExcelChartSheetDefault(workbook, ChartType.area.toString()); Row row1 = excelChartSheet.createRow(); Assert.assertNotNull("check row creation", row1); Row row2 = excelChartSheet.createRow(2); Assert.assertNotNull("check row creation", row2); }