@Test public void testCreateOptions() { final PopoverOptions options = mock(PopoverOptions.class); doReturn(options).when(view).createPopoverOptionsInstance(); view.createOptions(); verify(options).setAnimation(false); verify(options).setHtml(true); verify(options).setPlacement(AbstractPopoverViewImpl.PLACEMENT); }
PopoverOptions createOptions() { final PopoverOptions options = createPopoverOptionsInstance(); options.setContent((element) -> popoverContentElement); options.setAnimation(false); options.setHtml(true); options.setPlacement(PLACEMENT); return options; }
AbstractPopoverViewImpl implements PopoverView { PopoverOptions createOptions() { final PopoverOptions options = createPopoverOptionsInstance(); options.setContent((element) -> popoverContentElement); options.setAnimation(false); options.setHtml(true); options.setPlacement(PLACEMENT); return options; } }
AbstractPopoverViewImpl implements PopoverView { PopoverOptions createOptions() { final PopoverOptions options = createPopoverOptionsInstance(); options.setContent((element) -> popoverContentElement); options.setAnimation(false); options.setHtml(true); options.setPlacement(PLACEMENT); return options; } protected  AbstractPopoverViewImpl();  AbstractPopoverViewImpl(final Div popoverElement,
                                   final Div popoverContentElement,
                                   final JQueryProducer.JQuery<Popover> jQueryPopover); }
AbstractPopoverViewImpl implements PopoverView { PopoverOptions createOptions() { final PopoverOptions options = createPopoverOptionsInstance(); options.setContent((element) -> popoverContentElement); options.setAnimation(false); options.setHtml(true); options.setPlacement(PLACEMENT); return options; } protected  AbstractPopoverViewImpl();  AbstractPopoverViewImpl(final Div popoverElement,
                                   final Div popoverContentElement,
                                   final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void setOnClosedByKeyboardCallback(final Consumer<CanBeClosedByKeyboard> callback); @Override void show(final Optional<String> popoverTitle); @Override void hide(); boolean isVisible(); void keyDownEventListener(final Object event); boolean isEscapeKeyPressed(final KeyboardEvent event); boolean isEnterKeyPressed(final KeyboardEvent event); void onClosedByKeyboard(); Optional<Consumer<CanBeClosedByKeyboard>> getClosedByKeyboardCallback(); }
AbstractPopoverViewImpl implements PopoverView { PopoverOptions createOptions() { final PopoverOptions options = createPopoverOptionsInstance(); options.setContent((element) -> popoverContentElement); options.setAnimation(false); options.setHtml(true); options.setPlacement(PLACEMENT); return options; } protected  AbstractPopoverViewImpl();  AbstractPopoverViewImpl(final Div popoverElement,
                                   final Div popoverContentElement,
                                   final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void setOnClosedByKeyboardCallback(final Consumer<CanBeClosedByKeyboard> callback); @Override void show(final Optional<String> popoverTitle); @Override void hide(); boolean isVisible(); void keyDownEventListener(final Object event); boolean isEscapeKeyPressed(final KeyboardEvent event); boolean isEnterKeyPressed(final KeyboardEvent event); void onClosedByKeyboard(); Optional<Consumer<CanBeClosedByKeyboard>> getClosedByKeyboardCallback();  }