void (String testName, boolean resolveAliases) { myFixture.testStructureView(svc -> { svc.setActionActive(YAMLAliasResolveNodeProvider.ID, resolveAliases); PlatformTestUtil.expandAll(svc.getTree()); PlatformTestUtil.waitForPromise(svc.select(svc.getTreeModel().getCurrentEditorElement(), false)); TreePath leadPath = svc.getTree().getLeadSelectionPath(); String print = PlatformTestUtil.print(svc.getTree(), false); String suffix = resolveAliases ? "resolved" : "unresolved"; assertSameLinesWithFile(getTestDataPath() + testName + "." + suffix + ".txt", print + "\n\nLeadPath: " + leadPath); }); }