use of org.jetbrains.idea.maven.dom.references.MavenPsiElementWrapper in project intellij-community by JetBrains.
the class MavenDomTestCase method doAssertResolved.
private PsiReference doAssertResolved(VirtualFile file, PsiElement expected) throws IOException {
assertNotNull("expected reference is null", expected);
PsiReference ref = getReferenceAtCaret(file);
assertNotNull(ref);
PsiElement resolved = ref.resolve();
if (resolved instanceof MavenPsiElementWrapper) {
resolved = ((MavenPsiElementWrapper) resolved).getWrappee();
}
assertEquals(expected, resolved);
return ref;
}
use of org.jetbrains.idea.maven.dom.references.MavenPsiElementWrapper in project intellij-community by JetBrains.
the class MavenDomTestCase method resolveReference.
@Nullable
protected PsiElement resolveReference(VirtualFile file, @NotNull String referenceText) throws IOException {
PsiReference ref = getReference(file, referenceText);
assertNotNull(ref);
PsiElement resolved = ref.resolve();
if (resolved instanceof MavenPsiElementWrapper) {
resolved = ((MavenPsiElementWrapper) resolved).getWrappee();
}
return resolved;
}
Aggregations