@Test public void testShowBackButton() { presenter.showBackButton(); verify(view, times(1)).addButton(anyString(), anyString(), anyBoolean(), any(Command.class)); verify(view, times(0)).add(any(IsWidget.class)); verify(view, times(0)).init(presenter); verify(view, times(0)).clearButtons(); verify(view, times(0)).clearView(); }
public DataSetEditorWorkflow showBackButton() { view.addButton(DataSetEditorConstants.INSTANCE.back(), DataSetEditorConstants.INSTANCE.back_description(), false, cancelButtonCommand); return this; }
DataSetEditorWorkflow implements IsWidget { public DataSetEditorWorkflow showBackButton() { view.addButton(DataSetEditorConstants.INSTANCE.back(), DataSetEditorConstants.INSTANCE.back_description(), false, cancelButtonCommand); return this; } }
DataSetEditorWorkflow implements IsWidget { public DataSetEditorWorkflow showBackButton() { view.addButton(DataSetEditorConstants.INSTANCE.back(), DataSetEditorConstants.INSTANCE.back_description(), false, cancelButtonCommand); return this; } @Inject  DataSetEditorWorkflow(final DataSetClientServices clientServices,
                                 final DataSetValidatorProvider validatorProvider,
                                 final SyncBeanManager beanManager,
                                 final Event<SaveRequestEvent> saveRequestEvent,
                                 final Event<TestDataSetRequestEvent> testDataSetEvent,
                                 final Event<CancelRequestEvent> cancelRequestEvent,
                                 final View view); }
DataSetEditorWorkflow implements IsWidget { public DataSetEditorWorkflow showBackButton() { view.addButton(DataSetEditorConstants.INSTANCE.back(), DataSetEditorConstants.INSTANCE.back_description(), false, cancelButtonCommand); return this; } @Inject  DataSetEditorWorkflow(final DataSetClientServices clientServices,
                                 final DataSetValidatorProvider validatorProvider,
                                 final SyncBeanManager beanManager,
                                 final Event<SaveRequestEvent> saveRequestEvent,
                                 final Event<TestDataSetRequestEvent> testDataSetEvent,
                                 final Event<CancelRequestEvent> cancelRequestEvent,
                                 final View view); void init(); void testDataSet(final TestDataSetCallback testDataSetCallback); DataSetEditorWorkflow flush(); DataSetEditorWorkflow showNextButton(); DataSetEditorWorkflow showTestButton(); DataSetEditorWorkflow showBackButton(); DataSetEditorWorkflow clearButtons(); boolean hasErrors(); T getDataSetDef(); @Override Widget asWidget(); void flush(final SimpleBeanEditorDriver driver); DataSetEditorWorkflow clear(); }
DataSetEditorWorkflow implements IsWidget { public DataSetEditorWorkflow showBackButton() { view.addButton(DataSetEditorConstants.INSTANCE.back(), DataSetEditorConstants.INSTANCE.back_description(), false, cancelButtonCommand); return this; } @Inject  DataSetEditorWorkflow(final DataSetClientServices clientServices,
                                 final DataSetValidatorProvider validatorProvider,
                                 final SyncBeanManager beanManager,
                                 final Event<SaveRequestEvent> saveRequestEvent,
                                 final Event<TestDataSetRequestEvent> testDataSetEvent,
                                 final Event<CancelRequestEvent> cancelRequestEvent,
                                 final View view); void init(); void testDataSet(final TestDataSetCallback testDataSetCallback); DataSetEditorWorkflow flush(); DataSetEditorWorkflow showNextButton(); DataSetEditorWorkflow showTestButton(); DataSetEditorWorkflow showBackButton(); DataSetEditorWorkflow clearButtons(); boolean hasErrors(); T getDataSetDef(); @Override Widget asWidget(); void flush(final SimpleBeanEditorDriver driver); DataSetEditorWorkflow clear(); public View view; }