Java 类com.intellij.util.io.TestFileSystemBuilder 实例源码

项目:intellij-ce-playground    文件:ArtifactBuilderTestCase.java   
protected static void assertOutput(JpsArtifact a, TestFileSystemBuilder expected) {
  assertOutput(a.getOutputPath(), expected);
}
项目:intellij-ce-playground    文件:JpsBuildTestCase.java   
protected static void assertOutput(final String outputPath, TestFileSystemBuilder expected) {
  expected.build().assertDirectoryEqual(new File(FileUtil.toSystemDependentName(outputPath)));
}
项目:intellij-ce-playground    文件:JpsBuildTestCase.java   
protected static void assertOutput(JpsModule module, TestFileSystemBuilder expected) {
  String outputUrl = JpsJavaExtensionService.getInstance().getOutputUrl(module, false);
  assertNotNull(outputUrl);
  assertOutput(JpsPathUtil.urlToPath(outputUrl), expected);
}
项目:intellij-ce-playground    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}
项目:intellij-ce-playground    文件:ArtifactCompilerTestCase.java   
public static void assertOutput(Artifact artifact, TestFileSystemBuilder item) {
  final VirtualFile outputFile = getOutputDir(artifact);
  outputFile.refresh(false, true);
  item.build().assertDirectoryEqual(VfsUtil.virtualToIoFile(outputFile));
}
项目:intellij-ce-playground    文件:BaseCompilerTestCase.java   
protected static void assertOutput(Module module, TestFileSystemBuilder item) {
  assertOutput(module, item, false);
}
项目:intellij-ce-playground    文件:BaseCompilerTestCase.java   
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);
}
项目:intellij-ce-playground    文件:ZipUtilTest.java   
private static void checkFileStructure(@NotNull File parentDir, @NotNull TestFileSystemBuilder expected) {
  expected.build().assertDirectoryEqual(parentDir);
}
项目:intellij-ce-playground    文件:MavenCompilingTestCase.java   
protected void assertDirectory(String relativePath, TestFileSystemBuilder fileSystemBuilder) {
  fileSystemBuilder.build().assertDirectoryEqual(new File(myProjectPom.getParent().getPath(), relativePath));
}
项目:intellij-ce-playground    文件:MavenCompilingTestCase.java   
protected void assertJar(String relativePath, TestFileSystemBuilder fileSystemBuilder) {
  fileSystemBuilder.build().assertFileEqual(new File(myProjectPom.getParent().getPath(), relativePath));
}
项目:tools-idea    文件:ArtifactBuilderTestCase.java   
protected static void assertOutput(JpsArtifact a, TestFileSystemBuilder expected) {
  assertOutput(a.getOutputPath(), expected);
}
项目:tools-idea    文件:JpsBuildTestCase.java   
protected static void assertOutput(final String outputPath, TestFileSystemBuilder expected) {
  expected.build().assertDirectoryEqual(new File(FileUtil.toSystemDependentName(outputPath)));
}
项目:tools-idea    文件:JpsBuildTestCase.java   
protected static void assertOutput(JpsModule module, TestFileSystemBuilder expected) {
  String outputUrl = JpsJavaExtensionService.getInstance().getOutputUrl(module, false);
  assertNotNull(outputUrl);
  assertOutput(JpsPathUtil.urlToPath(outputUrl), expected);
}
项目:tools-idea    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}
项目:tools-idea    文件:ArtifactCompilerTestCase.java   
public static void assertOutput(Artifact artifact, TestFileSystemBuilder item) {
  final VirtualFile outputFile = getOutputDir(artifact);
  outputFile.refresh(false, true);
  item.build().assertDirectoryEqual(VfsUtil.virtualToIoFile(outputFile));
}
项目:tools-idea    文件:BaseCompilerTestCase.java   
protected static void assertOutput(Module module, TestFileSystemBuilder item) {
  assertOutput(module, item, false);
}
项目:tools-idea    文件:BaseCompilerTestCase.java   
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);
}
项目:tools-idea    文件:ZipUtilTest.java   
private static void checkFileStructure(@NotNull File parentDir, @NotNull TestFileSystemBuilder expected) {
  expected.build().assertDirectoryEqual(parentDir);
}
项目:consulo    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}
项目:consulo    文件:ArtifactCompilerTestCase.java   
public static void assertOutput(Artifact artifact, TestFileSystemBuilder item) {
  final VirtualFile outputFile = getOutputDir(artifact);
  outputFile.refresh(false, true);
  item.build().assertDirectoryEqual(VfsUtil.virtualToIoFile(outputFile));
}