use of com.intellij.openapi.diff.impl.patch.PatchReader in project intellij-community by JetBrains.
the class PatchingTestCase method applyPatch.
protected void applyPatch() throws Exception {
PatchReader reader = PatchVirtualFileReader.create(LocalFileSystem.getInstance().refreshAndFindFileByPath(patchFilePath));
List<FilePatch> patches = new ArrayList<>(reader.readTextPatches());
new PatchApplier<BinaryFilePatch>(myProject, myRoot, patches, null, null, null).execute();
}
Aggregations