@Test public void testSubmit() throws Exception { Path path = mock(Path.class); view.setupUploadWidget(type); view.submit(path); verify(attachmentFileWidget).submit(eq(path), eq(SERVLET_URL), commandCaptor.capture(), any(Command.class)); commandCaptor.getValue().execute(); verify(notificationEvent).fire(any(NotificationEvent.class)); verify(presenter).onUploadSuccess(); }
@Override public void submit(final Path path) { uploadWidget.submit(path, getServletUrl(), new Command() { @Override public void execute() { BusyPopup.close(); notifySuccess(); presenter.onUploadSuccess(); } }, new Command() { @Override public void execute() { BusyPopup.close(); } } ); }
DecisionTableXLSEditorViewImpl extends KieEditorViewImpl implements DecisionTableXLSEditorView { @Override public void submit(final Path path) { uploadWidget.submit(path, getServletUrl(), new Command() { @Override public void execute() { BusyPopup.close(); notifySuccess(); presenter.onUploadSuccess(); } }, new Command() { @Override public void execute() { BusyPopup.close(); } } ); } }
DecisionTableXLSEditorViewImpl extends KieEditorViewImpl implements DecisionTableXLSEditorView { @Override public void submit(final Path path) { uploadWidget.submit(path, getServletUrl(), new Command() { @Override public void execute() { BusyPopup.close(); notifySuccess(); presenter.onUploadSuccess(); } }, new Command() { @Override public void execute() { BusyPopup.close(); } } ); } DecisionTableXLSEditorViewImpl(); }
DecisionTableXLSEditorViewImpl extends KieEditorViewImpl implements DecisionTableXLSEditorView { @Override public void submit(final Path path) { uploadWidget.submit(path, getServletUrl(), new Command() { @Override public void execute() { BusyPopup.close(); notifySuccess(); presenter.onUploadSuccess(); } }, new Command() { @Override public void execute() { BusyPopup.close(); } } ); } DecisionTableXLSEditorViewImpl(); @Override void init(final DecisionTableXLSEditorView.Presenter presenter); @Override void setupUploadWidget(final ClientResourceType resourceTypeDefinition); void setPath(final Path path); @Override void submit(final Path path); @Override void setReadOnly(final boolean isReadOnly); }
DecisionTableXLSEditorViewImpl extends KieEditorViewImpl implements DecisionTableXLSEditorView { @Override public void submit(final Path path) { uploadWidget.submit(path, getServletUrl(), new Command() { @Override public void execute() { BusyPopup.close(); notifySuccess(); presenter.onUploadSuccess(); } }, new Command() { @Override public void execute() { BusyPopup.close(); } } ); } DecisionTableXLSEditorViewImpl(); @Override void init(final DecisionTableXLSEditorView.Presenter presenter); @Override void setupUploadWidget(final ClientResourceType resourceTypeDefinition); void setPath(final Path path); @Override void submit(final Path path); @Override void setReadOnly(final boolean isReadOnly);  }