use of com.intellij.psi.PsiReference in project intellij-community by JetBrains.
the class AntResolveTest method doPropertyTestExpectReferenceUnresolved.
private void doPropertyTestExpectReferenceUnresolved() throws Exception {
PsiReference ref = configure();
PsiElement target = ref.resolve();
assertTrue(target == null);
}
use of com.intellij.psi.PsiReference in project intellij-community by JetBrains.
the class AntResolveTest method doTaskTest.
private void doTaskTest() throws Exception {
PsiReference ref = configure();
PsiElement target = ref.resolve();
assertTrue(target instanceof PomTargetPsiElement && ((PomTargetPsiElement) target).getTarget().canNavigateToSource());
}
use of com.intellij.psi.PsiReference in project intellij-community by JetBrains.
the class AntResolveTest method testMacrodefElement.
public void testMacrodefElement() throws Exception {
PsiReference ref = configure();
assertNotNull(ref.resolve());
}
use of com.intellij.psi.PsiReference in project intellij-community by JetBrains.
the class AntResolveTest method testPresetDef.
public void testPresetDef() throws Exception {
PsiReference ref = configure();
assertNotNull(ref.resolve());
}
use of com.intellij.psi.PsiReference in project intellij-community by JetBrains.
the class AntResolveTest method testNonExistingEnvProperty.
public void testNonExistingEnvProperty() throws Exception {
boolean isNull = false;
final PsiReference ref = configure();
if (ref != null && ref.resolve() == null) {
isNull = true;
}
assertTrue(isNull);
}
Aggregations