@Test public void testCreateAndSaveEmpty() { ReassignmentRow test = new ReassignmentRow(); doNothing().when(view).hide(); when(customerBinder.getModel()).thenReturn(test); when(notCompleted.getValue()).thenReturn(ReassignmentType.NotCompletedReassign.getAlias()); when(typeSelect.getSelectedItem()).thenReturn(notCompleted); when(multipleLiveSearchSelectionHandlerGroups.getSelectedValues()).thenReturn(Collections.EMPTY_LIST); when(multipleLiveSearchSelectionHandlerUsers.getSelectedValues()).thenReturn(Collections.EMPTY_LIST); view.createOrEdit(reassignmentWidgetViewImpl, test); view.ok(); ReassignmentRow result = getFieldValue(ReassignmentEditorWidgetViewImpl.class, view, "current"); Assert.assertEquals(result, test); }
@Override public void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row) { view.createOrEdit(parent, row); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { @Override public void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row) { view.createOrEdit(parent, row); } }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { @Override public void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row) { view.createOrEdit(parent, row); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { @Override public void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row) { view.createOrEdit(parent, row); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row); void setReadOnly(boolean readOnly); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { @Override public void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row) { view.createOrEdit(parent, row); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row); void setReadOnly(boolean readOnly);  }