use of com.intellij.ide.hierarchy.actions.BrowseTypeHierarchyAction in project intellij-community by JetBrains.
the class JavaCallHierarchyTest method testActionAvailableInXml.
public void testActionAvailableInXml() throws Exception {
configureByText(XmlFileType.INSTANCE, "<foo>java.lang.Str<caret>ing</foo>");
BrowseTypeHierarchyAction action = new BrowseTypeHierarchyAction();
TestActionEvent e = new TestActionEvent(action);
action.beforeActionPerformedUpdate(e);
assertTrue(e.getPresentation().isEnabled() && e.getPresentation().isVisible());
}
Aggregations