@Test public void testClear() { HandlerRegistration out = mock(HandlerRegistration.class); HandlerRegistration over = mock(HandlerRegistration.class); tested.outHandler = out; tested.overHandler = over; tested.clear(); verify(out, times(1)).removeHandler(); verify(over, times(1)).removeHandler(); }
public LienzoPanelFocusHandler clear() { if (null != overHandler) { overHandler.removeHandler(); overHandler = null; } if (null != outHandler) { outHandler.removeHandler(); outHandler = null; } return this; }
LienzoPanelFocusHandler { public LienzoPanelFocusHandler clear() { if (null != overHandler) { overHandler.removeHandler(); overHandler = null; } if (null != outHandler) { outHandler.removeHandler(); outHandler = null; } return this; } }
LienzoPanelFocusHandler { public LienzoPanelFocusHandler clear() { if (null != overHandler) { overHandler.removeHandler(); overHandler = null; } if (null != outHandler) { outHandler.removeHandler(); outHandler = null; } return this; }  }
LienzoPanelFocusHandler { public LienzoPanelFocusHandler clear() { if (null != overHandler) { overHandler.removeHandler(); overHandler = null; } if (null != outHandler) { outHandler.removeHandler(); outHandler = null; } return this; }  LienzoPanelFocusHandler listen(final LienzoPanel panel,
                                          final Command onFocus,
                                          final Command onLostFocus); LienzoPanelFocusHandler clear(); }
LienzoPanelFocusHandler { public LienzoPanelFocusHandler clear() { if (null != overHandler) { overHandler.removeHandler(); overHandler = null; } if (null != outHandler) { outHandler.removeHandler(); outHandler = null; } return this; }  LienzoPanelFocusHandler listen(final LienzoPanel panel,
                                          final Command onFocus,
                                          final Command onLostFocus); LienzoPanelFocusHandler clear();  }