Search in sources :

Example 1 with StubVirtualFile

use of com.intellij.openapi.vfs.newvfs.impl.StubVirtualFile in project intellij by bazelbuild.

the class BlazeResolveConfigurationEquivalenceTest method createVirtualFile.

private VirtualFile createVirtualFile(String path) {
    VirtualFile stub = new StubVirtualFile() {

        @Override
        public boolean isValid() {
            return true;
        }
    };
    when(mockFileSystem.findFileByIoFile(new File(path))).thenReturn(stub);
    return stub;
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) StubVirtualFile(com.intellij.openapi.vfs.newvfs.impl.StubVirtualFile) StubVirtualFile(com.intellij.openapi.vfs.newvfs.impl.StubVirtualFile) VirtualFile(com.intellij.openapi.vfs.VirtualFile) StubVirtualFile(com.intellij.openapi.vfs.newvfs.impl.StubVirtualFile) File(java.io.File)

Aggregations

VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 StubVirtualFile (com.intellij.openapi.vfs.newvfs.impl.StubVirtualFile)1 File (java.io.File)1