Search in sources :

Example 6 with CProjectContainer

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

the class CProjectContainerTest method testDispose.

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

Example 7 with CProjectContainer

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

the class CProjectContainerTest method testGetViewsWithAddresses.

@Test
public void testGetViewsWithAddresses() throws CouldntLoadDataException {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    @SuppressWarnings("unused") final INaviView view = container.createView("view1", "information");
    final UnrelocatedAddress address = new UnrelocatedAddress(new MockAddress());
    final IFilledList<UnrelocatedAddress> addresses = new FilledList<UnrelocatedAddress>();
    addresses.add(address);
    try {
        container.getViewsWithAddresses(null, true);
        fail();
    } catch (final NullPointerException e) {
    }
// assertNull(container.getViewsWithAddresses(addresses, true));
}
Also used : INaviView(com.google.security.zynamics.binnavi.disassembly.views.INaviView) UnrelocatedAddress(com.google.security.zynamics.binnavi.disassembly.UnrelocatedAddress) FilledList(com.google.security.zynamics.zylib.types.lists.FilledList) IFilledList(com.google.security.zynamics.zylib.types.lists.IFilledList) CProjectContainer(com.google.security.zynamics.binnavi.disassembly.CProjectContainer) MockAddress(com.google.security.zynamics.zylib.disassembly.MockAddress) Test(org.junit.Test)

Example 8 with CProjectContainer

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

the class CProjectContainerTest method testIsLoaded.

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

Example 9 with CProjectContainer

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

the class CProjectContainerTest method testGetDatabase.

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

Example 10 with CProjectContainer

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

the class CProjectContainerTest method testRemoveListener.

@Test
public void testRemoveListener() {
    final CProjectContainer container = new CProjectContainer(m_database, m_project);
    try {
        container.removeListener(null);
        fail();
    } catch (final NullPointerException e) {
    }
}
Also used : 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