ConsoleButtonImpl extends Composite implements ConsoleButton, ClickHandler, MouseOverHandler, MouseOutHandler { @Override public void onMouseOut(MouseOutEvent mouseOutEvent) { tooltip.hide(); } @Inject  ConsoleButtonImpl(ButtonResources resources,
                             TooltipWidget tooltip,
                             @NotNull @Assisted String prompt,
                             @NotNull @Assisted SVGResource image); @Override void setCheckedStatus(boolean isChecked); @Override void setDelegate(ActionDelegate delegate); @Override void onClick(ClickEvent clickEvent); @Override void onMouseOut(MouseOutEvent mouseOutEvent); @Override void onMouseOver(MouseOverEvent mouseOverEvent); static final int TOP_TOOLTIP_SHIFT; }
@Test public void tooltipShouldBeHidden() throws Exception { widget.onMouseOut(mock(MouseOutEvent.class)); verify(tooltip).hide(); }