EnumEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return () -> EnumParser.toString(view.getContent()); } EnumEditorPresenter(); @Inject  EnumEditorPresenter(final EnumEditorView baseView,
                               final Caller<EnumService> enumService,
                               final EnumResourceType type,
                               final ValidationPopup validationPopup); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }
@Test public void testGetContentSupplier() throws Exception { final List<EnumRow> enumRows = new ArrayList<>(); doReturn(enumRows).when(view).getContent(); final Supplier<String> contentSupplier = presenter.getContentSupplier(); assertEquals("", contentSupplier.get()); }