use of com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Conditions.OutDegree.CCachedOutdegreeCriterium in project binnavi by google.
the class CCriteriumExecuterTest method testSingleOutDegreeCriterion.
@Test
public void testSingleOutDegreeCriterion() {
final CCachedOutdegreeCriterium criterium = new CCachedOutdegreeCriterium("=", 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