BaseEditor { ChangeTitleWidgetEvent makeChangeTitleWidgetEvent(final ObservablePath path) { final String titleText = getTitleText(path); final EditorTitle titleWidget = getTitleWidget(); return new ChangeTitleWidgetEvent(getPlace(), titleText, titleWidget); } BaseEditor(VersionRecordManager versionRecordManager,
               BaseEditorView baseView,
               BasicFileMenuBuilder menuBuilder,
               Event<ChangeTitleWidgetEvent> changeTitleNotification); protected  BaseEditor(); protected  BaseEditor(final BaseEditorView baseView); Validator getRenameValidator(); Validator getCopyValidator(); void setOriginalHash(Integer originalHash); String getTitleText(); RemoteCallback<Path> getSaveSuccessCallback(final int newHash); void onRestore(@Observes RestoreEvent restore); void reload(); void disableMenuItem(final MenuItems menuItem); void enableMenuItem(final MenuItems menuItem); void getMenus(final Consumer<Menus> menusConsumer); Command getValidateCommand(); boolean mayClose(Integer currentHash); boolean isDirty(Integer currentHash); VersionRecordManager getVersionRecordManager(); void setMetadataOriginalHash(final Integer metadataOriginalHash);  }
@Test public void testMakeChangeTitleWidgetEvent() { final ObservablePath path = mock(ObservablePath.class); final PlaceRequest placeRequest = mock(PlaceRequest.class); final String title = "title"; final EditorTitle editorTitle = mock(EditorTitle.class); doReturn(placeRequest).when(editor).getPlace(); doReturn(title).when(editor).getTitleText(path); doReturn(editorTitle).when(editor).getTitleWidget(); final ChangeTitleWidgetEvent event = editor.makeChangeTitleWidgetEvent(path); assertEquals(placeRequest, event.getPlaceRequest()); assertEquals(title, event.getTitle()); assertEquals(editorTitle, event.getTitleDecoration()); }