MultiListWorkbenchPanelView extends AbstractMultiPartWorkbenchPanelView<MultiListWorkbenchPanelPresenter> { @Override protected MultiPartWidget setupWidget() { listBar.disableDnd(); addOnFocusHandler(listBar); addSelectionHandler(listBar); final MaximizeToggleButtonPresenter maximizeButton = listBar.getMaximizeButton(); maximizeButton.setVisible(true); maximizeButton.setMaximizeCommand(new Command() { @Override public void execute() { maximize(); } }); maximizeButton.setUnmaximizeCommand(new Command() { @Override public void execute() { unmaximize(); } }); return listBar; }  @Override void maximize(); @Override void unmaximize(); @Override void setElementId(String elementId); @Override Collection<PartDefinition> getParts();  }
@Test public void setupWidget() { view.setupWidget(); verify(listBar).addSelectionHandler(any(SelectionHandler.class)); verify(listBar).addOnFocusHandler(any(Command.class)); verify(listBar).disableDnd(); verify(maximizeButton).setVisible(true); verify(maximizeButton).setMaximizeCommand(any(Command.class)); verify(maximizeButton).setUnmaximizeCommand(any(Command.class)); }