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")); }
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); }
protected static TestFileSystemBuilder fs() { return TestFileSystemItem.fs(); }