@Test public void autofixIsNotShownWhenNull() { JPanel toolPanel = toolWindow.getContent(); Component[] components = toolPanel.getComponents(); OnePixelSplitter splitter = (OnePixelSplitter) components[0]; JBScrollPane leftPane = (JBScrollPane) splitter.getFirstComponent(); JViewport leftView = leftPane.getViewport(); Tree suggestionTree = (Tree) leftView.getView(); JPanel rightPane = (JPanel) splitter.getSecondComponent(); TreePath streamingPath = getTreePathWithString(suggestionTree, streamingSuggestionData.toString()); suggestionTree.addSelectionPath(streamingPath); for (Component component : rightPane.getComponents()) { if (component instanceof JButton) { assertThat(component.isVisible()).isFalse(); } } }
public JPanel getContent() { window.validate(); return window; }
AnalyzeSizeToolWindow { public JPanel getContent() { window.validate(); return window; } }
AnalyzeSizeToolWindow { public JPanel getContent() { window.validate(); return window; } AnalyzeSizeToolWindow(
      ToolWindow toolWindow,
      Project project,
      ImmutableListMultimap<Category, Suggestion> categorizedSuggestions,
      ImmutableList<Category> categoryDisplayOrder); }
AnalyzeSizeToolWindow { public JPanel getContent() { window.validate(); return window; } AnalyzeSizeToolWindow(
      ToolWindow toolWindow,
      Project project,
      ImmutableListMultimap<Category, Suggestion> categorizedSuggestions,
      ImmutableList<Category> categoryDisplayOrder); JPanel getContent(); void setCategorizedSuggestions(
      ImmutableListMultimap<Category, Suggestion> categorizedSuggestions); void setCategoryDisplayOrder(ImmutableList<Category> categoryDisplayOrder); }
AnalyzeSizeToolWindow { public JPanel getContent() { window.validate(); return window; } AnalyzeSizeToolWindow(
      ToolWindow toolWindow,
      Project project,
      ImmutableListMultimap<Category, Suggestion> categorizedSuggestions,
      ImmutableList<Category> categoryDisplayOrder); JPanel getContent(); void setCategorizedSuggestions(
      ImmutableListMultimap<Category, Suggestion> categorizedSuggestions); void setCategoryDisplayOrder(ImmutableList<Category> categoryDisplayOrder);  }