@Test void testHasSheetTrue() { Sheet sheet = mock(Sheet.class); when(workbook.getSheet("test")).thenReturn(sheet); assertTrue(xlsxWriter.hasSheet("test")); }
public boolean hasSheet(String name) { try { return workbook.getSheet(name) != null; } catch (RuntimeException e) { throw new XlsxWriterException(e); } }
XlsxWriter implements AutoCloseable { public boolean hasSheet(String name) { try { return workbook.getSheet(name) != null; } catch (RuntimeException e) { throw new XlsxWriterException(e); } } }
XlsxWriter implements AutoCloseable { public boolean hasSheet(String name) { try { return workbook.getSheet(name) != null; } catch (RuntimeException e) { throw new XlsxWriterException(e); } } XlsxWriter(Path target, Workbook workbook); }
XlsxWriter implements AutoCloseable { public boolean hasSheet(String name) { try { return workbook.getSheet(name) != null; } catch (RuntimeException e) { throw new XlsxWriterException(e); } } XlsxWriter(Path target, Workbook workbook); boolean hasSheet(String name); void createSheet(String name, List<Object> headers); void writeRows(Stream<List<Object>> rows, String sheetName); @Override void close(); }
XlsxWriter implements AutoCloseable { public boolean hasSheet(String name) { try { return workbook.getSheet(name) != null; } catch (RuntimeException e) { throw new XlsxWriterException(e); } } XlsxWriter(Path target, Workbook workbook); boolean hasSheet(String name); void createSheet(String name, List<Object> headers); void writeRows(Stream<List<Object>> rows, String sheetName); @Override void close();  }