StudioProfilersView extends AspectObserver implements Disposable { @VisibleForTesting public StageView getStageView() { return myStageView; } StudioProfilersView(@NotNull StudioProfilers profiler, @NotNull IdeProfilerComponents ideProfilerComponents); @Override void dispose(); @VisibleForTesting void bind(@NotNull Class<S> clazz,
                                                          @NotNull BiFunction<StudioProfilersView, S, T> constructor); @VisibleForTesting @NotNull CommonButton getZoomToSelectionButton(); @VisibleForTesting HoverHyperlinkLabel getDeselectAllLabel(); @VisibleForTesting JPanel getDeselectAllToolbar(); @VisibleForTesting StageView getStageView(); @NotNull StudioProfilers getStudioProfilers(); @NotNull JLayeredPane getComponent(); void installCommonMenuItems(@NotNull JComponent component); @NotNull IdeProfilerComponents getIdeProfilerComponents(); @NotNull static final String ATTACH_LIVE; @NotNull static final String DETACH_LIVE; @NotNull static final String ZOOM_IN; @NotNull static final String ZOOM_OUT; }
@Test public void testSameStageTransition() { FakeStage stage = new FakeStage(myProfilers); myProfilers.setStage(stage); StageView view = myView.getStageView(); myProfilers.setStage(stage); assertThat(myView.getStageView()).isEqualTo(view); }