use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method addUserTestWrongArgument1.
@Test(expected = NullPointerException.class)
public void addUserTestWrongArgument1() throws CouldntSaveDataException {
final CUserManager manager = CUserManager.get(m_sql);
manager.addUser(null);
}
use of com.google.security.zynamics.binnavi.Gui.Users.CUserManager in project binnavi by google.
the class CUserManagerTest method editUserCorrectArgumentsTest.
@Test
public void editUserCorrectArgumentsTest() throws CouldntSaveDataException {
final CUserManager manager = CUserManager.get(m_sql);
final IUser user1 = manager.addUser("TWO");
final IUser user2 = manager.editUserName(user1, "TWO AFTER EDIT");
assertEquals("TWO", user1.getUserName());
assertEquals("TWO AFTER EDIT", user2.getUserName());
assertTrue(user1.getUserId() == user2.getUserId());
}
Aggregations