Search in sources :

Example 1 with NotStubbed

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

the class DomStubUsingTest method testParent.

public void testParent() {
    DomFileElement<Foo> element = prepare("parent.xml", Foo.class);
    Bar bar = element.getRootElement().getBars().get(0);
    GenericAttributeValue<Integer> notStubbed = bar.getNotStubbed();
    DomElement parent = notStubbed.getParent();
    assertEquals(bar, parent);
    NotStubbed child = bar.getNotStubbeds().get(0);
    parent = child.getParent();
    assertEquals(bar, parent);
}
Also used : Bar(com.intellij.util.xml.stubs.model.Bar) Foo(com.intellij.util.xml.stubs.model.Foo) NotStubbed(com.intellij.util.xml.stubs.model.NotStubbed)

Aggregations

Bar (com.intellij.util.xml.stubs.model.Bar)1 Foo (com.intellij.util.xml.stubs.model.Foo)1 NotStubbed (com.intellij.util.xml.stubs.model.NotStubbed)1