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);
}
Aggregations