ExtractionsPaths { Path assetExtractionPath(String sourceFileMatchPath, String extractionName) { return Paths.get(extractionPath(extractionName).toString(), sourceFileMatchPath + JSON_FILE_EXTENSION); } ExtractionsPaths(String outputDirectory); Path outputDirectory(); static final String DEFAULT_OUTPUT_DIRECTORY; }
@Test public void assetExtractionPath() { ExtractionsPaths extractionsPaths = new ExtractionsPaths(outputDirectory); Assert.assertEquals( Paths.get(outputDirectory, extractName, "LC_MESSAGES/messages.pot.json"), extractionsPaths.assetExtractionPath("LC_MESSAGES/messages.pot", extractName)); }