@Test public void testDestroy() { tested.destroy(); verify(editor, times(1)).dispose(); verify(monacoEditor, times(1)).getChildNodes(); verify(rootContainer, times(1)).getChildNodes(); assertNull(tested.editor); }
@PreDestroy public void destroy() { dispose(); clear(rootContainer); presenter = null; }
MonacoEditorView implements UberElement<MonacoEditorPresenter> { @PreDestroy public void destroy() { dispose(); clear(rootContainer); presenter = null; } }
MonacoEditorView implements UberElement<MonacoEditorPresenter> { @PreDestroy public void destroy() { dispose(); clear(rootContainer); presenter = null; }  }
MonacoEditorView implements UberElement<MonacoEditorPresenter> { @PreDestroy public void destroy() { dispose(); clear(rootContainer); presenter = null; }  @Override void init(final MonacoEditorPresenter presenter); String getValue(); String getLanguage(); void load(String[] modules,
                     MonacoEditorOptions options,
                     Runnable callback); void dispose(); @PreDestroy void destroy(); @Override HTMLElement getElement(); }
MonacoEditorView implements UberElement<MonacoEditorPresenter> { @PreDestroy public void destroy() { dispose(); clear(rootContainer); presenter = null; }  @Override void init(final MonacoEditorPresenter presenter); String getValue(); String getLanguage(); void load(String[] modules,
                     MonacoEditorOptions options,
                     Runnable callback); void dispose(); @PreDestroy void destroy(); @Override HTMLElement getElement();  }