@Test public void test_getFileOutputDir() throws Exception { final URI test = URI.create(FILE_PREFIX + Joiner.on("/").join(PARENT_DIR_PATH, "src", "main", "javascript", "MyTest.html")); final TestRunCoverageStatistics stats = new TestRunCoverageStatistics(test); final File actual = getFileOutputDir(BASE_URI, OUTPUT_DIR, stats).getAbsoluteFile(); final File expected = new File(PARENT_DIR_PATH, Joiner.on(File.separatorChar).join("target", "main", "javascript")).getAbsoluteFile(); assertThat(actual, equalTo(expected)); }
public static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats) { final URI relativeTestUri = baseUri.relativize(runStats.test); return new File(outputDir, relativeTestUri.toString()).getParentFile().getAbsoluteFile(); }
ReporterUtil { public static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats) { final URI relativeTestUri = baseUri.relativize(runStats.test); return new File(outputDir, relativeTestUri.toString()).getParentFile().getAbsoluteFile(); } }
ReporterUtil { public static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats) { final URI relativeTestUri = baseUri.relativize(runStats.test); return new File(outputDir, relativeTestUri.toString()).getParentFile().getAbsoluteFile(); } private  ReporterUtil(); }
ReporterUtil { public static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats) { final URI relativeTestUri = baseUri.relativize(runStats.test); return new File(outputDir, relativeTestUri.toString()).getParentFile().getAbsoluteFile(); } private  ReporterUtil(); static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats); }
ReporterUtil { public static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats) { final URI relativeTestUri = baseUri.relativize(runStats.test); return new File(outputDir, relativeTestUri.toString()).getParentFile().getAbsoluteFile(); } private  ReporterUtil(); static File getFileOutputDir(final URI baseUri, final File outputDir, final TestRunCoverageStatistics runStats);  }