DataSetEditWorkflow extends DataSetEditorWorkflow<T> { public DataSetEditorWorkflow showPreviewTab() { getWidget().showPreviewTab(); return this; } @Inject  DataSetEditWorkflow( final DataSetClientServices clientServices,
                                final DataSetValidatorProvider validatorProvider,
                                final SyncBeanManager beanManager,
                                final Event<SaveRequestEvent> saveRequestEvent,
                                final Event<TestDataSetRequestEvent> testDataSetEvent,
                                final Event<CancelRequestEvent> cancelRequestEvent,
                                final View view ); @PostConstruct void init(); DataSetEditWorkflow edit( final T definition, List<DataColumnDef> allColumns ); @Override void dispose(); E getEditor(); DataSetEditorWorkflow showConfigurationTab(); DataSetEditorWorkflow showPreviewTab(); DataSetEditorWorkflow showAdvancedTab();  }
@Test public void testShowPreviewTab() { presenter.editor = editor; presenter.showPreviewTab(); verify( editor, times( 1 ) ).showPreviewTab(); verify( editor, times( 0 ) ).showConfigurationTab(); verify( editor, times( 0 ) ).showAdvancedTab(); verify( view, times( 0 ) ).clearView(); verify( view, times( 0 ) ).add( any( IsWidget.class ) ); verify( view, times( 0 ) ).init( presenter ); verify( view, times( 0 ) ).addButton( anyString(), anyString(), anyBoolean(), any( Command.class ) ); verify( view, times( 0 ) ).clearButtons(); }