@Test public void testDestroy() { tested.destroy(); verify(mediators, times(1)).destroy(); assertNull(tested.getMediators()); }
@PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } }
LienzoCanvasMediators { @PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } } }
LienzoCanvasMediators { @PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } } @Inject  LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                                 final ClientTranslationService translationService,
                                 final LienzoCanvasNotification notification,
                                 final EditorContextProvider editorContextProvider);   LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                          final ClientTranslationService translationService,
                          final LienzoCanvasNotification notification,
                          final Function<LienzoBoundsPanel, PanelMediators> mediatorsBuilder); }
LienzoCanvasMediators { @PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } } @Inject  LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                                 final ClientTranslationService translationService,
                                 final LienzoCanvasNotification notification,
                                 final EditorContextProvider editorContextProvider);   LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                          final ClientTranslationService translationService,
                          final LienzoCanvasNotification notification,
                          final Function<LienzoBoundsPanel, PanelMediators> mediatorsBuilder); void init(final Supplier<LienzoCanvas> canvas); void setMinScale(final double minScale); void setMaxScale(final double maxScale); void setZoomFactor(final double factor); void setScaleAboutPoint(final boolean scaleAboutPoint); void enable(); void disable(); @PreDestroy void destroy(); }
LienzoCanvasMediators { @PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } } @Inject  LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                                 final ClientTranslationService translationService,
                                 final LienzoCanvasNotification notification,
                                 final EditorContextProvider editorContextProvider);   LienzoCanvasMediators(final KeyEventHandler keyEventHandler,
                          final ClientTranslationService translationService,
                          final LienzoCanvasNotification notification,
                          final Function<LienzoBoundsPanel, PanelMediators> mediatorsBuilder); void init(final Supplier<LienzoCanvas> canvas); void setMinScale(final double minScale); void setMaxScale(final double maxScale); void setZoomFactor(final double factor); void setScaleAboutPoint(final boolean scaleAboutPoint); void enable(); void disable(); @PreDestroy void destroy();  }