@Test public void testLayoutRFC4180() throws Exception { testLayout(CSVFormat.RFC4180); }
@Test public void testLayoutTab() throws Exception { testLayout(CSVFormat.TDF); } }
private void testLayout(final CSVFormat format) { testLayout(format, CsvLogEventLayout.createLayout(format), null, null); }
@Test public void testLayoutExcel() throws Exception { testLayout(CSVFormat.EXCEL); }
@Test public void testLayoutMySQL() throws Exception { testLayout(CSVFormat.MYSQL); }
@Test public void testLayoutDefault() throws Exception { testLayout(CSVFormat.DEFAULT); }
@Test public void testHeaderFooter() { final String header = "# Header"; final String footer = "# Footer "; final AbstractCsvLayout layout = CsvLogEventLayout.createLayout(ctx.getConfiguration(), "Excel", null, null, null, null, null, null, null, header, footer); testLayout(CSVFormat.DEFAULT, layout, header, footer); }