@Test public void testDestroy() { testedTreeExplorerView.destroy(); verify(handlerRegistration, times(1)).removeHandler(); }
public TreeExplorer.View destroy() { handlerRegistration.removeHandler(); tree.clear(); tree.removeFromParent(); handlerRegistration = null; presenter = null; return this; }
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View destroy() { handlerRegistration.removeHandler(); tree.clear(); tree.removeFromParent(); handlerRegistration = null; presenter = null; return this; } }
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View destroy() { handlerRegistration.removeHandler(); tree.clear(); tree.removeFromParent(); handlerRegistration = null; presenter = null; return this; } @Inject  TreeExplorerView(final Tree<TreeItem> tree);   TreeExplorerView(final TreeExplorer presenter,
                     final Tree<TreeItem> tree,
                     final HandlerRegistration handlerRegistration
    ); }
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View destroy() { handlerRegistration.removeHandler(); tree.clear(); tree.removeFromParent(); handlerRegistration = null; presenter = null; return this; } @Inject  TreeExplorerView(final Tree<TreeItem> tree);   TreeExplorerView(final TreeExplorer presenter,
                     final Tree<TreeItem> tree,
                     final HandlerRegistration handlerRegistration
    ); @Override void init(final TreeExplorer presenter); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String parentsUuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state,
                                     final OptionalInt index); boolean isItemChanged(final String uuid,
                                 final String parentUuid,
                                 final String name,
                                 final int childCount,
                                 final OptionalInt indexIntoParent); @Override TreeExplorer.View clear(); TreeExplorer.View destroy(); @Override boolean isContainer(final String uuid); TreeExplorer.View setSelectedItem(final String uuid); TreeExplorer.View removeItem(String uuid); }
TreeExplorerView extends Composite implements TreeExplorer.View { public TreeExplorer.View destroy() { handlerRegistration.removeHandler(); tree.clear(); tree.removeFromParent(); handlerRegistration = null; presenter = null; return this; } @Inject  TreeExplorerView(final Tree<TreeItem> tree);   TreeExplorerView(final TreeExplorer presenter,
                     final Tree<TreeItem> tree,
                     final HandlerRegistration handlerRegistration
    ); @Override void init(final TreeExplorer presenter); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state); @SuppressWarnings("unchecked") TreeExplorer.View addItem(final String uuid,
                                     final String parentsUuid,
                                     final String name,
                                     final IsWidget icon,
                                     final boolean isContainer,
                                     final boolean state,
                                     final OptionalInt index); boolean isItemChanged(final String uuid,
                                 final String parentUuid,
                                 final String name,
                                 final int childCount,
                                 final OptionalInt indexIntoParent); @Override TreeExplorer.View clear(); TreeExplorer.View destroy(); @Override boolean isContainer(final String uuid); TreeExplorer.View setSelectedItem(final String uuid); TreeExplorer.View removeItem(String uuid);  }