Search in sources :

Example 6 with Bar

use of com.intellij.util.xml.stubs.model.Bar in project intellij-community by JetBrains.

the class DomStubUsingTest method testConverters.

public void testConverters() {
    DomFileElement<Foo> element = prepare("converters.xml", Foo.class);
    Bar bar = element.getRootElement().getBars().get(0);
    PsiClass value = bar.getClazz().getValue();
    assertNotNull(value);
    assertEquals("java.lang.String", value.getQualifiedName());
    assertFalse(element.getFile().getNode().isParsed());
}
Also used : Bar(com.intellij.util.xml.stubs.model.Bar) Foo(com.intellij.util.xml.stubs.model.Foo) PsiClass(com.intellij.psi.PsiClass)

Aggregations

Bar (com.intellij.util.xml.stubs.model.Bar)6 Foo (com.intellij.util.xml.stubs.model.Foo)6 PsiClass (com.intellij.psi.PsiClass)1 PsiFile (com.intellij.psi.PsiFile)1 XmlAttribute (com.intellij.psi.xml.XmlAttribute)1 XmlTag (com.intellij.psi.xml.XmlTag)1 NotStubbed (com.intellij.util.xml.stubs.model.NotStubbed)1