@Test public void testSave() { final ObservablePath currentPathMock = mock(ObservablePath.class); doReturn(currentPathMock).when(versionRecordManager).getCurrentPath(); presenter.save("save"); verify(metadataServiceMock).saveMetadata(eq(currentPathMock), eq(metadataMock), eq("save")); verify(presenter).getSaveSuccessCallback(eq(metadataMock.hashCode())); }
@Override protected void save(final String commitMessage) { metadataService.call(getSaveSuccessCallback(metadata.hashCode())) .saveMetadata(versionRecordManager.getCurrentPath(), metadata, commitMessage); }
GuvnorDefaultEditorPresenter extends KieEditor<String> { @Override protected void save(final String commitMessage) { metadataService.call(getSaveSuccessCallback(metadata.hashCode())) .saveMetadata(versionRecordManager.getCurrentPath(), metadata, commitMessage); } }
GuvnorDefaultEditorPresenter extends KieEditor<String> { @Override protected void save(final String commitMessage) { metadataService.call(getSaveSuccessCallback(metadata.hashCode())) .saveMetadata(versionRecordManager.getCurrentPath(), metadata, commitMessage); } @Inject  GuvnorDefaultEditorPresenter(final GuvnorDefaultEditorView baseView); }
GuvnorDefaultEditorPresenter extends KieEditor<String> { @Override protected void save(final String commitMessage) { metadataService.call(getSaveSuccessCallback(metadata.hashCode())) .saveMetadata(versionRecordManager.getCurrentPath(), metadata, commitMessage); } @Inject  GuvnorDefaultEditorPresenter(final GuvnorDefaultEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @OnClose @Override void onClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); }
GuvnorDefaultEditorPresenter extends KieEditor<String> { @Override protected void save(final String commitMessage) { metadataService.call(getSaveSuccessCallback(metadata.hashCode())) .saveMetadata(versionRecordManager.getCurrentPath(), metadata, commitMessage); } @Inject  GuvnorDefaultEditorPresenter(final GuvnorDefaultEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @OnClose @Override void onClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); static final String EDITOR_ID; }