@Test public void testGetDestinationDirectory() throws Exception { final String outputAbsolutePath = "i am the absolute path"; final File outputDirectory = mock(File.class); when(outputDirectory.getAbsolutePath()).thenReturn(outputAbsolutePath); mojo.outputDirectory = outputDirectory; final File destinationDirectory = mock(File.class); whenNew(File.class).withArguments(outputAbsolutePath, "cdoc-report").thenReturn(destinationDirectory); assertThat(mojo.getDestinationDirectory()).isEqualTo(destinationDirectory); }
File getDestinationDirectory() { return new File(getOutputDirectory(), getOutputName()); }
CDocReportMojo extends AbstractMavenReport { File getDestinationDirectory() { return new File(getOutputDirectory(), getOutputName()); } }
CDocReportMojo extends AbstractMavenReport { File getDestinationDirectory() { return new File(getOutputDirectory(), getOutputName()); } CDocReportMojo();  CDocReportMojo(final TextParser textParser, final ScriptExecutionDetailsParser detailsParser); }
CDocReportMojo extends AbstractMavenReport { File getDestinationDirectory() { return new File(getOutputDirectory(), getOutputName()); } 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 { File getDestinationDirectory() { return new File(getOutputDirectory(), getOutputName()); } 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();  }