use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method addUserTestCorrectArgument.
@Test
public void addUserTestCorrectArgument() throws CouldntSaveDataException {
final CUserManager manager = CUserManager.get(m_sql);
final MockUserManagerListener listener = new MockUserManagerListener();
manager.addListener(listener);
manager.addUser(" ADD USER CORRECT ARGUMENTS ");
assertEquals("addedUser;", listener.m_events.get(0));
}
use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method setCurrentActiveUserCorrectArgumentsTest.
@Test
public void setCurrentActiveUserCorrectArgumentsTest() throws CouldntSaveDataException {
final CUserManager manager = CUserManager.get(m_sql);
final IUser user = manager.addUser(" TEST SET CURRENT ACTIVE USER ");
manager.setCurrentActiveUser(user);
}
use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method setCurrentActiveUserWrongArgumentsTest.
@Test(expected = NullPointerException.class)
public void setCurrentActiveUserWrongArgumentsTest() {
final CUserManager manager = CUserManager.get(m_sql);
manager.setCurrentActiveUser(null);
}
use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method deleteUserWrongArgumentTest1.
@Test(expected = NullPointerException.class)
public void deleteUserWrongArgumentTest1() throws CouldntDeleteException {
final CUserManager manager = CUserManager.get(m_sql);
manager.deleteUser(null);
}
use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method editUserWrongArgumentsTest2.
@Test(expected = NullPointerException.class)
public void editUserWrongArgumentsTest2() throws CouldntSaveDataException {
final CUserManager manager = CUserManager.get(m_sql);
final IUser user = manager.addUser("TEST USER 12412");
manager.editUserName(user, null);
}
Aggregations