ExtractionDiffsPaths { public Path assetExtractionDiffPath(String sourceFileMatchPath, String diffExtractionName) { return Paths.get(outputDirectory, diffExtractionName, sourceFileMatchPath + JSON_FILE_EXTENSION); } ExtractionDiffsPaths(String outputDirectory); Path outputDirectory(); Path extractionDiffPath(String diffExtractionName); Path assetExtractionDiffPath(String sourceFileMatchPath, String diffExtractionName); String sourceFileMatchPath(Path extractionDiffPath, String extractionDiffName); Stream<Path> findAllAssetExtractionDiffPaths(String diffExtractionName); static final String DEFAULT_OUTPUT_DIRECTORY; }
@Test public void assetExtractionDiffPath() { ExtractionDiffsPaths extractionDiffsPaths = new ExtractionDiffsPaths(outputDirectory); Assert.assertEquals( Paths.get(outputDirectory, extractionDiffName, "LC_MESSAGES/messages.pot.json"), extractionDiffsPaths.assetExtractionDiffPath("LC_MESSAGES/messages.pot", extractionDiffName)); }