use of com.intellij.usages.impl.rules.JavaUsageTypeProvider in project intellij-community by JetBrains.
the class JavaUsageTypeProviderTest method assertUsageType.
private void assertUsageType(UsageType expected, PsiClass target) {
UsageTarget[] targets = { new PsiElement2UsageTargetAdapter(target) };
PsiElement element = myFixture.getReferenceAtCaretPositionWithAssertion().getElement();
UsageType usageType = new JavaUsageTypeProvider().getUsageType(element, targets);
assertEquals(expected, usageType);
}
Aggregations