Search in sources :

Example 21 with CProjectContainer

use of com.google.security.zynamics.binnavi.disassembly.CProjectContainer in project binnavi by google.

the class CProjectContainerTest method testGetTaggedViews.

@Test
public void testGetTaggedViews() {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    assertEquals(0, container.getTaggedViews().size());
}
Also used : CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) Test(org.junit.Test)

Example 22 with CProjectContainer

use of com.google.security.zynamics.binnavi.disassembly.CProjectContainer in project binnavi by google.

the class CProjectContainerTest method testDeleteView.

@Test
public void testDeleteView() throws CouldntDeleteException {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    final INaviView view = container.createView("foo", "berT");
    assertNotNull(view);
    try {
        container.deleteView(null);
        fail();
    } catch (final NullPointerException e) {
    }
    container.deleteView(view);
    assertEquals(2, container.getViews().size());
}
Also used : INaviView(com.google.security.zynamics.binnavi.disassembly.views.INaviView) CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) Test(org.junit.Test)

Example 23 with CProjectContainer

use of com.google.security.zynamics.binnavi.disassembly.CProjectContainer in project binnavi by google.

the class CProjectContainerTest method testGetDebuggerProvider.

@Test
public void testGetDebuggerProvider() {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    assertNotNull(container.getDebuggerProvider());
}
Also used : CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) Test(org.junit.Test)

Example 24 with CProjectContainer

use of com.google.security.zynamics.binnavi.disassembly.CProjectContainer in project binnavi by google.

the class CProjectContainerTest method testGetFunctions.

@Test
public void testGetFunctions() {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    assertEquals(0, container.getFunctions().size());
}
Also used : CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) Test(org.junit.Test)

Example 25 with CProjectContainer

use of com.google.security.zynamics.binnavi.disassembly.CProjectContainer in project binnavi by google.

the class CProjectContainerTest method testContainsModule.

@Test
public void testContainsModule() {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    assertFalse(container.containsModule(new MockModule()));
    assertTrue(container.containsModule(m_module));
    try {
        container.containsModule(null);
        fail();
    } catch (final NullPointerException e) {
    }
}
Also used : MockModule(com.google.security.zynamics.binnavi.disassembly.Modules.MockModule) CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) Test(org.junit.Test)

Aggregations

CProjectContainer (com.google.security.zynamics.binnavi.disassembly.CProjectContainer)29 Test (org.junit.Test)24 INaviView (com.google.security.zynamics.binnavi.disassembly.views.INaviView)7 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)6 CProjectNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Project.CProjectNode)5 Module (com.google.security.zynamics.binnavi.API.disassembly.Module)3 Project (com.google.security.zynamics.binnavi.API.disassembly.Project)3 ViewContainer (com.google.security.zynamics.binnavi.API.disassembly.ViewContainer)3 CAddressSpace (com.google.security.zynamics.binnavi.disassembly.AddressSpaces.CAddressSpace)3 CModuleContainer (com.google.security.zynamics.binnavi.disassembly.Modules.CModuleContainer)3 IViewContainer (com.google.security.zynamics.binnavi.disassembly.views.IViewContainer)3 UnrelocatedAddress (com.google.security.zynamics.binnavi.disassembly.UnrelocatedAddress)2 FilledList (com.google.security.zynamics.zylib.types.lists.FilledList)2 IFilledList (com.google.security.zynamics.zylib.types.lists.IFilledList)2 MockDatabase (com.google.security.zynamics.binnavi.Database.MockClasses.MockDatabase)1 CProjectTreeModel (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.CProjectTreeModel)1 DebuggerTemplate (com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate)1 ITraceEvent (com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceEvent)1 CProject (com.google.security.zynamics.binnavi.disassembly.CProject)1 INaviModule (com.google.security.zynamics.binnavi.disassembly.INaviModule)1