use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Database.CDatabaseNode in project binnavi by google.
the class CDatabaseNodeTest method testClosed.
@Test
public void testClosed() throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException {
final CDatabaseNode node = new CDatabaseNode(m_tree, new DefaultMutableTreeNode(), m_database);
m_database.load();
m_database.close();
node.dispose();
assertTrue(((LinkedHashSet<?>) ReflectionHelpers.getField(ReflectionHelpers.getField(m_database, "listeners"), "m_listeners")).isEmpty());
}
use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Database.CDatabaseNode in project binnavi by google.
the class CDatabaseNodeTest method testChangingDescription.
@Test
public void testChangingDescription() {
final CDatabaseNode node = new CDatabaseNode(m_tree, new DefaultMutableTreeNode(), m_database);
assertEquals("Mock Database", node.toString());
m_database.getConfiguration().setDescription("Hannes");
assertEquals("Hannes", node.toString());
}
Aggregations