use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testAssignDebuggerModule2.
@Test(expected = NullPointerException.class)
public void testAssignDebuggerModule2() throws CouldntLoadDataException, CouldntSaveDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().assignDebugger((CModule) null, debuggerTemplate);
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testSetNameDebugger1.
@Test
public void testSetNameDebugger1() throws CouldntSaveDataException, CouldntLoadDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().setName(debuggerTemplate, "localhost");
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testAssignDebuggerModule1.
@Test
public void testAssignDebuggerModule1() throws CouldntSaveDataException, CouldntLoadDataException {
final INaviModule module = getProvider().loadModules().get(0);
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().assignDebugger(module, debuggerTemplate);
getProvider().assignDebugger(module, null);
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testCProjectFunctionsRemoveDebugger1.
@Test
public void testCProjectFunctionsRemoveDebugger1() throws CouldntLoadDataException, LoadCancelledException, CouldntSaveDataException {
final INaviProject project = getProvider().loadProjects().get(0);
project.load();
final DebuggerTemplate debugger = new DebuggerTemplate(1, "foo", "host", 1234, getProvider());
PostgreSQLProjectFunctions.removeDebugger((AbstractSQLProvider) getProvider(), project, debugger);
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testSetPort3.
@Test(expected = IllegalArgumentException.class)
public void testSetPort3() throws CouldntSaveDataException, CouldntLoadDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().setPort(debuggerTemplate, -1);
}
Aggregations