Search in sources :

Example 1 with MockContentRevision

use of com.intellij.testFramework.vcs.MockContentRevision in project intellij-community by JetBrains.

the class LocalChangesUnderRootsTest method createChangeForPath.

private Change createChangeForPath(String path) {
    VirtualFile file = VfsTestUtil.createFile(myBaseDir, path);
    FilePath filePath = VcsUtil.getFilePath(file);
    ContentRevision beforeRevision = new MockContentRevision(filePath, new VcsRevisionNumber.Int(1));
    ContentRevision afterRevision = new MockContentRevision(filePath, new VcsRevisionNumber.Int(2));
    return new Change(beforeRevision, afterRevision);
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) VcsRevisionNumber(com.intellij.openapi.vcs.history.VcsRevisionNumber) ContentRevision(com.intellij.openapi.vcs.changes.ContentRevision) MockContentRevision(com.intellij.testFramework.vcs.MockContentRevision) Change(com.intellij.openapi.vcs.changes.Change) MockContentRevision(com.intellij.testFramework.vcs.MockContentRevision)

Aggregations

Change (com.intellij.openapi.vcs.changes.Change)1 ContentRevision (com.intellij.openapi.vcs.changes.ContentRevision)1 VcsRevisionNumber (com.intellij.openapi.vcs.history.VcsRevisionNumber)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 MockContentRevision (com.intellij.testFramework.vcs.MockContentRevision)1