@SuppressWarnings("AutoBoxing") @Test public void handleParseTreeNodeShowFailureTest() { final ParseTreeNode node = mock(ParseTreeNode.class); when(node.isSuccess()).thenReturn(false); final int endIndex = 42; when(node.getEndIndex()).thenReturn(endIndex); presenter.handleParseTreeNodeShow(node); verify(view).showParseTreeNode(node); verify(view).highlightFailure(endIndex); }
public void handleParseTreeNodeShow(final ParseTreeNode node) { final int end = node.getEndIndex(); view.showParseTreeNode(node); if (node.isSuccess()) view.highlightSuccess(node.getStartIndex(), end); else view.highlightFailure(end); }
TreeTabPresenter extends TabPresenter<TreeTabView> { public void handleParseTreeNodeShow(final ParseTreeNode node) { final int end = node.getEndIndex(); view.showParseTreeNode(node); if (node.isSuccess()) view.highlightSuccess(node.getStartIndex(), end); else view.highlightFailure(end); } }
TreeTabPresenter extends TabPresenter<TreeTabView> { public void handleParseTreeNodeShow(final ParseTreeNode node) { final int end = node.getEndIndex(); view.showParseTreeNode(node); if (node.isSuccess()) view.highlightSuccess(node.getStartIndex(), end); else view.highlightFailure(end); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
TreeTabPresenter extends TabPresenter<TreeTabView> { public void handleParseTreeNodeShow(final ParseTreeNode node) { final int end = node.getEndIndex(); view.showParseTreeNode(node); if (node.isSuccess()) view.highlightSuccess(node.getStartIndex(), end); else view.highlightFailure(end); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void handleParseTreeNodeShow(final ParseTreeNode node); void handleNeedChildren(final ParseTreeNode value); }
TreeTabPresenter extends TabPresenter<TreeTabView> { public void handleParseTreeNodeShow(final ParseTreeNode node) { final int end = node.getEndIndex(); view.showParseTreeNode(node); if (node.isSuccess()) view.highlightSuccess(node.getStartIndex(), end); else view.highlightFailure(end); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void handleParseTreeNodeShow(final ParseTreeNode node); void handleNeedChildren(final ParseTreeNode value);  }