@Test @SuppressWarnings("unchecked") public void testShowNullControl() { presenter.show(); verify(view, never()).show(any(Optional.class)); verify(view, never()).focusParameter(anyInt()); }
@Override public void show() { binding.ifPresent(b -> { view.show(Optional.ofNullable(getPopoverTitle())); focusLastParameter(b); }); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void show() { binding.ifPresent(b -> { view.show(Optional.ofNullable(getPopoverTitle())); focusLastParameter(b); }); } }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void show() { binding.ifPresent(b -> { view.show(Optional.ofNullable(getPopoverTitle())); focusLastParameter(b); }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void show() { binding.ifPresent(b -> { view.show(Optional.ofNullable(getPopoverTitle())); focusLastParameter(b); }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); @Override String getPopoverTitle(); @Override void bind(final HasParametersControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void show(); @Override void addParameter(); @Override void removeParameter(final InformationItem parameter); @Override void updateParameterName(final InformationItem parameter,
                                    final String name); @Override void updateParameterTypeRef(final InformationItem parameter,
                                       final QName typeRef); }
ParametersPopoverImpl extends AbstractPopoverImpl<ParametersPopoverView, HasParametersControl> implements ParametersPopoverView.Presenter { @Override public void show() { binding.ifPresent(b -> { view.show(Optional.ofNullable(getPopoverTitle())); focusLastParameter(b); }); } ParametersPopoverImpl(); @Inject  ParametersPopoverImpl(final ParametersPopoverView view,
                                 final TranslationService translationService); @Override String getPopoverTitle(); @Override void bind(final HasParametersControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); @Override void show(); @Override void addParameter(); @Override void removeParameter(final InformationItem parameter); @Override void updateParameterName(final InformationItem parameter,
                                    final String name); @Override void updateParameterTypeRef(final InformationItem parameter,
                                       final QName typeRef);  }