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

项目:intellij-ce-playground    文件:AndroidBuilderTest.java   
public void test1() throws Exception {
  final MyExecutor executor = new MyExecutor("com.example.simple");
  final JpsModule module = setUpSimpleAndroidStructure(ArrayUtil.EMPTY_STRING_ARRAY, executor, null).getFirst();
  rebuildAll();
  checkBuildLog(executor, "expected_log");
  checkMakeUpToDate(executor);

  assertOutput(module, TestFileSystemItem.fs()
      .dir("com")
      .dir("example")
      .dir("simple")
      .file("BuildConfig.class")
      .file("R.class")
      .end()
      .end()
      .end()
      .archive("module.apk")
      .file("META-INF")
      .file("res_apk_entry", "res_apk_entry_content")
      .file("classes.dex", "classes_dex_content"));
}
项目:intellij-ce-playground    文件:ExternalSystemTestCase.java   
protected void assertArtifactOutput(String artifactName, TestFileSystemItem fs) {
  final Artifact artifact = ArtifactsTestUtil.findArtifact(myProject, artifactName);
  final VirtualFile outputFile = artifact.getOutputFile();
  assert outputFile != null;
  final File file = VfsUtilCore.virtualToIoFile(outputFile);
  fs.assertFileEqual(file);
}
项目:intellij-ce-playground    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}
项目:tools-idea    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}
项目:consulo    文件:ArtifactCompilerTestCase.java   
protected static TestFileSystemBuilder fs() {
  return TestFileSystemItem.fs();
}