mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-217839 fix NPE on tear-down - simplify test failure investigation
GitOrigin-RevId: 7c445d8dc944de852e5f1e427108bca3333bf8ee
This commit is contained in:
committed by
intellij-monorepo-bot
parent
648435b6a5
commit
59ad73d2a1
+3
@@ -630,6 +630,9 @@ public interface CodeInsightTestFixture extends IdeaProjectTestFixture {
|
||||
@NotNull
|
||||
PsiManager getPsiManager();
|
||||
|
||||
@Nullable
|
||||
PsiManager getPsiManagerOrNull();
|
||||
|
||||
/**
|
||||
* @return {@code null} if the only item was auto-completed.
|
||||
* @see #completeBasicAllCarets(Character)
|
||||
|
||||
+5
@@ -1283,6 +1283,11 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
|
||||
return myPsiManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final @Nullable PsiManager getPsiManagerOrNull() {
|
||||
return myPsiManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public LookupElement[] complete(@NotNull CompletionType type) {
|
||||
return myEditorTestFixture.complete(type);
|
||||
|
||||
Reference in New Issue
Block a user