TerminationConfigFormViewImpl extends Composite implements TerminationConfigFormView { @Override public void initTree(TreeItem rootTreeItem) { this.tree.clear(); this.tree.addItem(rootTreeItem); } TerminationConfigFormViewImpl(); @Inject  TerminationConfigFormViewImpl(final Tree tree); @Override void initTree(TreeItem rootTreeItem); @Override void displayEmptyTreeLabel(boolean visible); void refreshTree(); static native void refreshNestedTreeItemBorders();  }
@Test public void initTree() { TreeItem treeItem = new TreeItem(); terminationConfigFormView.initTree(treeItem); verify(tree).clear(); verify(tree).addItem(treeItem); }