use of com.google.security.zynamics.binnavi.disassembly.INaviProject in project binnavi by google.
the class PostgreSQLViewNotificationParserTest method testProjectViewInform0.
@Test
public void testProjectViewInform0() throws CouldntLoadDataException {
final INaviProject project = new MockProject(provider);
final int currentUserViewSize = project.getContent().getViews().size();
final ViewNotificationContainer container = new ViewNotificationContainer(view.getConfiguration().getId(), Optional.fromNullable(view), Optional.of(project.getConfiguration().getId()), Optional.<INaviModule>absent(), Optional.of(project), "INSERT");
final PostgreSQLViewNotificationParser parser = new PostgreSQLViewNotificationParser();
parser.inform(Lists.<ViewNotificationContainer>newArrayList(container), provider);
assertEquals(currentUserViewSize + 1, project.getContent().getViews().size());
}
use of com.google.security.zynamics.binnavi.disassembly.INaviProject in project binnavi by google.
the class PostgreSQLProviderTest method testAddDebuggerConstructor2.
@Test(expected = NullPointerException.class)
public void testAddDebuggerConstructor2() throws CouldntSaveDataException, CouldntLoadDataException {
final INaviProject project = getProvider().loadProjects().get(0);
getProvider().addDebugger(project, null);
}
use of com.google.security.zynamics.binnavi.disassembly.INaviProject in project binnavi by google.
the class PostgreSQLProviderTest method testTraceFunctionsSetDescription4.
@Test(expected = NullPointerException.class)
public void testTraceFunctionsSetDescription4() throws CouldntSaveDataException {
final INaviProject project = getProvider().createProject("SOME_PROJECT");
getProvider().createTrace(project, "SOME_TRACE", "SOME_TRACE_DESCRIPTION");
final TraceList trace = project.getContent().getTraces().get(0);
PostgreSQLTraceFunctions.setDescription((AbstractSQLProvider) getProvider(), trace, null);
}
use of com.google.security.zynamics.binnavi.disassembly.INaviProject in project binnavi by google.
the class PostgreSQLProviderTest method testCProjectFunctionsSetName4.
@Test(expected = NullPointerException.class)
public void testCProjectFunctionsSetName4() throws CouldntLoadDataException, CouldntSaveDataException {
final INaviProject project = getProvider().loadProjects().get(0);
PostgreSQLProjectFunctions.setName((AbstractSQLProvider) getProvider(), project, null);
}
use of com.google.security.zynamics.binnavi.disassembly.INaviProject 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);
}
Aggregations