@Test public void testInit() { tested.init(() -> panel); verify(panelView, times(1)).addMouseOutHandler(any(MouseOutHandler.class)); }
public void init(final Supplier<LienzoPanel> panel) { this.panel = panel; this.outHandler = panel.get().getView().addMouseOutHandler(mouseOutEvent -> hide()); }
LienzoCanvasNotification { public void init(final Supplier<LienzoPanel> panel) { this.panel = panel; this.outHandler = panel.get().getView().addMouseOutHandler(mouseOutEvent -> hide()); } }
LienzoCanvasNotification { public void init(final Supplier<LienzoPanel> panel) { this.panel = panel; this.outHandler = panel.get().getView().addMouseOutHandler(mouseOutEvent -> hide()); } @Inject  LienzoCanvasNotification(final View view); }
LienzoCanvasNotification { public void init(final Supplier<LienzoPanel> panel) { this.panel = panel; this.outHandler = panel.get().getView().addMouseOutHandler(mouseOutEvent -> hide()); } @Inject  LienzoCanvasNotification(final View view); void init(final Supplier<LienzoPanel> panel); void show(final String text); void hide(); @PreDestroy void destroy(); }
LienzoCanvasNotification { public void init(final Supplier<LienzoPanel> panel) { this.panel = panel; this.outHandler = panel.get().getView().addMouseOutHandler(mouseOutEvent -> hide()); } @Inject  LienzoCanvasNotification(final View view); void init(final Supplier<LienzoPanel> panel); void show(final String text); void hide(); @PreDestroy void destroy();  }