@Test public void testInit() { tested.init(presenter); verify(increaseButton, times(1)).setTitle(eq(CoreTranslationMessages.INCREASE)); verify(decreaseButton, times(1)).setTitle(eq(CoreTranslationMessages.DECREASE)); verify(resetButton, times(1)).setTitle(eq(CoreTranslationMessages.RESET)); }
@Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationService.getNotNullValue(CoreTranslationMessages.DECREASE)); setTooltip(resetButton, translationService.getNotNullValue(CoreTranslationMessages.RESET)); }
ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationService.getNotNullValue(CoreTranslationMessages.DECREASE)); setTooltip(resetButton, translationService.getNotNullValue(CoreTranslationMessages.RESET)); } }
ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationService.getNotNullValue(CoreTranslationMessages.DECREASE)); setTooltip(resetButton, translationService.getNotNullValue(CoreTranslationMessages.RESET)); }  }
ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationService.getNotNullValue(CoreTranslationMessages.DECREASE)); setTooltip(resetButton, translationService.getNotNullValue(CoreTranslationMessages.RESET)); }  @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text,
                    final Command onClick); @Override void clear(); void setSelectedValue(String selectedItem); @Override void setText(String text); @Override void setEnabled(boolean enabled); @Override void dropUp(); @PreDestroy void destroy(); }
ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationService.getNotNullValue(CoreTranslationMessages.DECREASE)); setTooltip(resetButton, translationService.getNotNullValue(CoreTranslationMessages.RESET)); }  @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text,
                    final Command onClick); @Override void clear(); void setSelectedValue(String selectedItem); @Override void setText(String text); @Override void setEnabled(boolean enabled); @Override void dropUp(); @PreDestroy void destroy();  }