Search in sources :

Example 1 with MockPsiManager

use of com.intellij.mock.MockPsiManager in project android by JetBrains.

the class GradleRenderErrorContributorTest method createResultWithBrokenClass.

private RenderResult createResultWithBrokenClass() {
    PsiFile file = new MockPsiFile(new MockPsiManager(myProject));
    file.putUserData(ModuleUtilCore.KEY_MODULE, myModule);
    RenderResult result = RenderResult.createBlank(file);
    result.getLogger().addBrokenClass("com.google.Class", new Exception());
    return result;
}
Also used : MockPsiFile(com.intellij.mock.MockPsiFile) RenderResult(com.android.tools.idea.rendering.RenderResult) MockPsiFile(com.intellij.mock.MockPsiFile) PsiFile(com.intellij.psi.PsiFile) MockPsiManager(com.intellij.mock.MockPsiManager)

Aggregations

RenderResult (com.android.tools.idea.rendering.RenderResult)1 MockPsiFile (com.intellij.mock.MockPsiFile)1 MockPsiManager (com.intellij.mock.MockPsiManager)1 PsiFile (com.intellij.psi.PsiFile)1