PivotUtils { public static void createAnnotationRow(final Row annotationRow, final List<String> annotationList) { int i = 0; for (final String a : annotationList) { final Cell cell = annotationRow.createCell((short) i++); cell.setCellValue(a); } }  static void createAnnotationRow(final Row annotationRow, final List<String> annotationList); static void createOrderRow(final Row orderRow, final List<Integer> orderList); static void createTypeRow(final Row typeRow, final List<AggregationType> typeList);  }
@Test public void createAnnotationRowTest() { XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(); Row r = sheet.createRow(0); List<String> l = Arrays.asList("a", "b", "c"); PivotUtils.createAnnotationRow(r,l); Assertions.assertThat(r.getCell(0).getStringCellValue()).isEqualTo("a"); Assertions.assertThat(r.getCell(1).getStringCellValue()).isEqualTo("b"); Assertions.assertThat(r.getCell(2).getStringCellValue()).isEqualTo("c"); }