@Test public void testAddCopy() { final ObservablePath observablePath = mock(ObservablePath.class); doReturn(observablePath).when(versionRecordManager).getCurrentPath(); presenter.addCopy(fileMenuBuilder); verify(fileMenuBuilder).addCopy(observablePath, assetUpdateValidator); }
protected void addCopy(final FileMenuBuilder fileMenuBuilder) { fileMenuBuilder.addCopy(versionRecordManager.getCurrentPath(), assetUpdateValidator); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void addCopy(final FileMenuBuilder fileMenuBuilder) { fileMenuBuilder.addCopy(versionRecordManager.getCurrentPath(), assetUpdateValidator); } }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void addCopy(final FileMenuBuilder fileMenuBuilder) { fileMenuBuilder.addCopy(versionRecordManager.getCurrentPath(), assetUpdateValidator); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void addCopy(final FileMenuBuilder fileMenuBuilder) { fileMenuBuilder.addCopy(versionRecordManager.getCurrentPath(), assetUpdateValidator); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); void onShowDiagramEditorDocks(@Observes PlaceGainFocusEvent event); void onHideDocks(@Observes PlaceHiddenEvent event); void showDocks(); void hideDocks(); boolean verifyEventIdentifier(AbstractPlaceEvent event); @Override void setOriginalHash(Integer originalHash); boolean mayClose(Object object); @OnClose void onClose(); void addDownloadMenuItem(final FileMenuBuilder fileMenuBuilder); @Override Validator getRenameValidator(); void setSelectedTab(int index); IsWidget getWidget(); void onRepositoryRemoved(final @Observes RepositoryRemovedEvent event); @Override boolean mayClose(Integer currentHash); @Override void onOverviewSelected(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); void addTabBarWidget(final IsWidget customWidget); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void addCopy(final FileMenuBuilder fileMenuBuilder) { fileMenuBuilder.addCopy(versionRecordManager.getCurrentPath(), assetUpdateValidator); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); void onShowDiagramEditorDocks(@Observes PlaceGainFocusEvent event); void onHideDocks(@Observes PlaceHiddenEvent event); void showDocks(); void hideDocks(); boolean verifyEventIdentifier(AbstractPlaceEvent event); @Override void setOriginalHash(Integer originalHash); boolean mayClose(Object object); @OnClose void onClose(); void addDownloadMenuItem(final FileMenuBuilder fileMenuBuilder); @Override Validator getRenameValidator(); void setSelectedTab(int index); IsWidget getWidget(); void onRepositoryRemoved(final @Observes RepositoryRemovedEvent event); @Override boolean mayClose(Integer currentHash); @Override void onOverviewSelected(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); void addTabBarWidget(final IsWidget customWidget);  }