ServiceTaskUploadFormPresenter implements ServiceTaskUploadFormView.Presenter { @Override public Command onCloseCommand() { return onClose; } @Inject  ServiceTaskUploadFormPresenter(final ServiceTaskUploadFormView view,
                                          final Caller<ServiceTaskService> serviceTaskService,
                                          Event<NotificationEvent> notificationEvent,
                                          final SyncBeanManager iocManager); @PostConstruct void init(); @Override void handleSubmitComplete(final AbstractForm.SubmitCompleteEvent event); @Override boolean isFileNameValid(); void showView(Command onUploadCompleted); @Override Command onCloseCommand(); static final String UPLOAD_FAILED; }
@Test public void testOnCloseCommand() { assertNotNull(presenter.onCloseCommand()); }