HtmlEditor extends BaseEditor<String, DefaultMetadata> { @Override protected void loadContent() { baseView.hideBusyIndicator(); htmlEditorService.call((String htmlContent) -> { editor.setContent(htmlContent); }).load(versionRecordManager.getCurrentPath()); } @Inject  HtmlEditor(final HtmlResourceType htmlResourceType,
                      final HtmlEditorPresenter editor,
                      final Caller<HtmlEditorService> htmlEditorService); @PostConstruct void init(); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override @WorkbenchPartTitleDecoration IsWidget getTitle(); @Override @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @WorkbenchPartView IsWidget getView();  }
@Test public void testLoadContent() { final ObservablePath path = mock(ObservablePath.class); doReturn(path).when(versionRecordManagerMock).getCurrentPath(); htmlEditor.loadContent(); verify(baseViewMock).hideBusyIndicator(); verify(htmlEditorService).load(path); verify(presenter).setContent(anyString()); }