Search in sources :

Example 1 with CTagsTreeModel

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.NodeTaggingTree.CTagsTreeModel in project binnavi by google.

the class CTaggedGraphNodesContainerNodeTest method test1Simple.

@Test
public void test1Simple() throws FileReadException, CouldntLoadDataException, LoadCancelledException, CouldntSaveDataException {
    final ZyGraph graph = ZyGraphFactory.generateTestGraph();
    final CTagsTreeModel model = new CTagsTreeModel(null);
    final CTag tag = new CTag(0, "tag", "description", TagType.NODE_TAG, new MockSqlProvider());
    final TreeNode<CTag> treeNode = new TreeNode<CTag>(tag);
    final CTaggedGraphNodesContainerNode containerNode = new CTaggedGraphNodesContainerNode(graph, model, treeNode);
    assertEquals("Tagged Nodes (0/0/1/1)", containerNode.toString());
    assertEquals(null, containerNode.getIconName());
    containerNode.getIcon();
}
Also used : ZyGraph(com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraph) MockSqlProvider(com.google.security.zynamics.binnavi.Database.MockClasses.MockSqlProvider) TreeNode(com.google.security.zynamics.zylib.types.trees.TreeNode) CTag(com.google.security.zynamics.binnavi.Tagging.CTag) CTagsTreeModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.NodeTaggingTree.CTagsTreeModel) Test(org.junit.Test)

Aggregations

MockSqlProvider (com.google.security.zynamics.binnavi.Database.MockClasses.MockSqlProvider)1 CTagsTreeModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.NodeTaggingTree.CTagsTreeModel)1 CTag (com.google.security.zynamics.binnavi.Tagging.CTag)1 ZyGraph (com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraph)1 TreeNode (com.google.security.zynamics.zylib.types.trees.TreeNode)1 Test (org.junit.Test)1