use of com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Conditions.InDegrees.CCachedIndegreeCriterium in project binnavi by google.
the class CCriteriumExecuterTest method testSingleInDegreeCriterion.
@Test
public void testSingleInDegreeCriterion() {
final CCachedIndegreeCriterium criterium = new CCachedIndegreeCriterium("=", 1);
final CCachedExpressionTreeNode node = new CCachedExpressionTreeNode(criterium);
CCachedExpressionTreeNode.append(m_tree.getRoot(), node);
assertEquals(0, m_graph.getSelectedNodes().size());
CCriteriumExecuter.execute(m_tree, m_graph);
assertEquals(2, m_graph.getSelectedNodes().size());
}
Aggregations