use of com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Conditions.NodeColor.CCachedColorCriterium in project binnavi by google.
the class CCriteriumExecuterTest method testSingleColorCriterion.
@Test
public void testSingleColorCriterion() {
final CCachedColorCriterium criterium = new CCachedColorCriterium(Color.RED);
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(1, m_graph.getSelectedNodes().size());
assertTrue(m_graph.getRawView().getGraph().getNodes().get(1).isSelected());
}
Aggregations