@Test public void testDispose() { final SelectableDocumentView selectableDocumentBean = makeSelectableDocument( "default: final List<Path> documents = new ArrayList<Path>() {{ add( selectableDocumentBean.getPath() ); }}; presenter.setDocuments( documents ); verify( view, times( 1 ) ).clear(); presenter.dispose(); verify( view, times( 2 ) ).clear(); }
@Override @PreDestroy public void dispose() { view.clear(); selectedDocuments.clear(); selectableDocuments.clear(); }
SelectDocumentPopup implements SelectDocumentPopupPresenter { @Override @PreDestroy public void dispose() { view.clear(); selectedDocuments.clear(); selectableDocuments.clear(); } }
SelectDocumentPopup implements SelectDocumentPopupPresenter { @Override @PreDestroy public void dispose() { view.clear(); selectedDocuments.clear(); selectableDocuments.clear(); } @Inject  SelectDocumentPopup(final SelectDocumentPopupView view,
                               final ManagedInstance<SelectableDocumentView> selectableDocumentProvider); }
SelectDocumentPopup implements SelectDocumentPopupPresenter { @Override @PreDestroy public void dispose() { view.clear(); selectedDocuments.clear(); selectableDocuments.clear(); } @Inject  SelectDocumentPopup(final SelectDocumentPopupView view,
                               final ManagedInstance<SelectableDocumentView> selectableDocumentProvider); @Override @PreDestroy void dispose(); @Override void setEditorPresenter(final KieMultipleDocumentEditorPresenter presenter); @Override void setDocuments(final List<Path> paths); @Override void show(); @Override void onOK(); @Override void onCancel(); }
SelectDocumentPopup implements SelectDocumentPopupPresenter { @Override @PreDestroy public void dispose() { view.clear(); selectedDocuments.clear(); selectableDocuments.clear(); } @Inject  SelectDocumentPopup(final SelectDocumentPopupView view,
                               final ManagedInstance<SelectableDocumentView> selectableDocumentProvider); @Override @PreDestroy void dispose(); @Override void setEditorPresenter(final KieMultipleDocumentEditorPresenter presenter); @Override void setDocuments(final List<Path> paths); @Override void show(); @Override void onOK(); @Override void onCancel();  }