use of com.google.security.zynamics.binnavi.disassembly.CProject in project binnavi by google.
the class PostgreSQLProviderTest method testAssignDebuggerAddressSpace1.
@Test
public void testAssignDebuggerAddressSpace1() throws CouldntSaveDataException, CouldntLoadDataException {
final CProject project = getProvider().createProject("ADDRESS_SPACE_PROJECT_123");
getProvider().createAddressSpace(project, "ADDRESS_SPACE_123");
final CAddressSpace addressSpace = getProvider().loadAddressSpaces(project).get(0);
getProvider().assignDebugger(addressSpace, getProvider().loadDebuggers().getDebugger(0));
getProvider().assignDebugger(addressSpace, null);
}
use of com.google.security.zynamics.binnavi.disassembly.CProject in project binnavi by google.
the class ProjectTest method setUp.
@SuppressWarnings("deprecation")
@Before
public void setUp() {
modificationDate.setYear(creationDate.getYear() + 1);
m_internalProject = new CProject(1, "Project Name", "Project Description", creationDate, modificationDate, 1, new ArrayList<com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate>(), provider);
final TagManager nodeTagManager = new TagManager(new CTagManager(new Tree<CTag>(new TreeNode<CTag>(new CTag(1, "", "", TagType.NODE_TAG, provider))), TagType.NODE_TAG, provider));
final TagManager viewTagManager = new TagManager(new CTagManager(new Tree<CTag>(new TreeNode<CTag>(new CTag(1, "", "", TagType.VIEW_TAG, provider))), TagType.VIEW_TAG, provider));
m_project = new Project(database, m_internalProject, nodeTagManager, viewTagManager);
}
use of com.google.security.zynamics.binnavi.disassembly.CProject in project binnavi by google.
the class PostgreSQLProviderTestTeardown method testDeleteAddressSpace2.
@Test
public void testDeleteAddressSpace2() throws CouldntDeleteException, CouldntLoadDataException, CouldntSaveDataException {
final CProject project = getProvider().createProject("DELETE_ADDRESS_SPACE_PROJECT");
getProvider().createAddressSpace(project, "DELETE_ADDRESS_SPACE_ADDRESS_SPACE");
getProvider().deleteAddressSpace(getProvider().loadAddressSpaces(project).get(0));
}
use of com.google.security.zynamics.binnavi.disassembly.CProject in project binnavi by google.
the class PostgreSQLProviderTest method testCAddressSpaceLoaderLoadAddressSpaces5.
@Test(expected = NullPointerException.class)
public void testCAddressSpaceLoaderLoadAddressSpaces5() throws CouldntLoadDataException {
final CProject project = (CProject) getProvider().loadProjects().get(0);
final DebuggerTemplateManager debuggerManager = new DebuggerTemplateManager(getProvider());
PostgreSQLAddressSpaceLoader.loadAddressSpaces((AbstractSQLProvider) getProvider(), project, debuggerManager, null);
}
use of com.google.security.zynamics.binnavi.disassembly.CProject in project binnavi by google.
the class PostgreSQLProviderTest method testAddModuleConstructor2.
@Test(expected = NullPointerException.class)
public void testAddModuleConstructor2() throws CouldntLoadDataException, CouldntSaveDataException {
final CProject project = getProvider().createProject("TEST ADD MOUDLE CONSTRUCTOR 2");
getProvider().createAddressSpace(project, "FOOBAR_ADDRESS_SPACE");
getProvider().loadAddressSpaces(project).get(0);
getProvider().addModule(getProvider().loadAddressSpaces(project).get(0), null);
}
Aggregations