protected static void assertOutput(JpsArtifact a, TestFileSystemBuilder expected) { assertOutput(a.getOutputPath(), expected); }
protected static void assertOutput(final String outputPath, TestFileSystemBuilder expected) { expected.build().assertDirectoryEqual(new File(FileUtil.toSystemDependentName(outputPath))); }
protected static void assertOutput(JpsModule module, TestFileSystemBuilder expected) { String outputUrl = JpsJavaExtensionService.getInstance().getOutputUrl(module, false); assertNotNull(outputUrl); assertOutput(JpsPathUtil.urlToPath(outputUrl), expected); }
protected static TestFileSystemBuilder fs() { return TestFileSystemItem.fs(); }
public static void assertOutput(Artifact artifact, TestFileSystemBuilder item) { final VirtualFile outputFile = getOutputDir(artifact); outputFile.refresh(false, true); item.build().assertDirectoryEqual(VfsUtil.virtualToIoFile(outputFile)); }
protected static void assertOutput(Module module, TestFileSystemBuilder item) { assertOutput(module, item, false); }
protected static void assertOutput(Module module, TestFileSystemBuilder item, final boolean forTests) { File outputDir = getOutputDir(module, forTests); Assert.assertTrue((forTests? "Test output" : "Output") +" directory " + outputDir.getAbsolutePath() + " doesn't exist", outputDir.exists()); item.build().assertDirectoryEqual(outputDir); }
private static void checkFileStructure(@NotNull File parentDir, @NotNull TestFileSystemBuilder expected) { expected.build().assertDirectoryEqual(parentDir); }
protected void assertDirectory(String relativePath, TestFileSystemBuilder fileSystemBuilder) { fileSystemBuilder.build().assertDirectoryEqual(new File(myProjectPom.getParent().getPath(), relativePath)); }
protected void assertJar(String relativePath, TestFileSystemBuilder fileSystemBuilder) { fileSystemBuilder.build().assertFileEqual(new File(myProjectPom.getParent().getPath(), relativePath)); }