@Test public void testReadSource() throws Exception { final String testData = "data, data, data!"; final File outputFile = File.createTempFile("testReadSource", null); FileUtils.fileWrite(outputFile.getAbsolutePath(), "utf-8", testData); assertThat(mojo.readSource(outputFile)).containsOnly(testData); }
List<String> readSource(final File file) throws MavenReportException { try { return org.apache.commons.io.FileUtils.readLines(file, getInputEncoding()); } catch (final IOException e) { throw new MavenReportException("Failed to read source for file " + file, e); } }
CDocReportMojo extends AbstractMavenReport { List<String> readSource(final File file) throws MavenReportException { try { return org.apache.commons.io.FileUtils.readLines(file, getInputEncoding()); } catch (final IOException e) { throw new MavenReportException("Failed to read source for file " + file, e); } } }
CDocReportMojo extends AbstractMavenReport { List<String> readSource(final File file) throws MavenReportException { try { return org.apache.commons.io.FileUtils.readLines(file, getInputEncoding()); } catch (final IOException e) { throw new MavenReportException("Failed to read source for file " + file, e); } } CDocReportMojo();  CDocReportMojo(final TextParser textParser, final ScriptExecutionDetailsParser detailsParser); }
CDocReportMojo extends AbstractMavenReport { List<String> readSource(final File file) throws MavenReportException { try { return org.apache.commons.io.FileUtils.readLines(file, getInputEncoding()); } catch (final IOException e) { throw new MavenReportException("Failed to read source for file " + file, e); } } CDocReportMojo();  CDocReportMojo(final TextParser textParser, final ScriptExecutionDetailsParser detailsParser); @Override boolean canGenerateReport(); @Override String getDescription(final Locale locale); @Override String getName(final Locale locale); @Override String getOutputName(); @Override boolean isExternalReport(); }
CDocReportMojo extends AbstractMavenReport { List<String> readSource(final File file) throws MavenReportException { try { return org.apache.commons.io.FileUtils.readLines(file, getInputEncoding()); } catch (final IOException e) { throw new MavenReportException("Failed to read source for file " + file, e); } } CDocReportMojo();  CDocReportMojo(final TextParser textParser, final ScriptExecutionDetailsParser detailsParser); @Override boolean canGenerateReport(); @Override String getDescription(final Locale locale); @Override String getName(final Locale locale); @Override String getOutputName(); @Override boolean isExternalReport();  }