DataSetPanel implements IsWidget { public void disable() { view.disableActionButton(); } @Inject  DataSetPanel(final DataSetSummary dataSetSummary, 
                        final Event<EditDataSetEvent> editDataSetEvent, 
                        final View view); @PostConstruct void init(); @Override Widget asWidget(); void show(final DataSetDef def, final String parentPanelId); void close(); void disable(); DataSetDef getDataSetDef();  }
@Test public void testDisable() throws Exception { presenter.disable(); verify(view, times(0)).init(presenter); verify(view, times(0)).configure(any(DataSetSummary.View.class)); verify(view, times(0)).showHeader(anyString(), anyString(), any(SafeUri.class), anyString(), anyString()); verify(view, times(0)).showSummary(); verify(view, times(0)).hideSummary(); verify(view, times(0)).enableActionButton(anyString(), any(ClickHandler.class)); verify(view, times(1)).disableActionButton(); }