return false;
}
@Test
public void testgetUserByIdNameAndKey() throws Exception {
IUserPersistence persistence = new UserCassandraPersistence();
User user;
try {
List<User> users = new LinkedList<User>();
user = createUser(persistence, "vvenkatraman1234", "venu1234");
users.add(user);
user = createUser(persistence, "bcheng1234", "boasen1234");
users.add(user);
String accessKey = user.getAccessKey();
user = persistence.createUser("mchiang1234", "mchiang1234");
users.add(user);
String userId = user.getUserId();
String userName = "vvenkatraman1234";
user = persistence.getUserByName(userName);
assertUser(userName, user);
user = persistence.getUserById(userId);
assertUser("mchiang1234", user);
assertTrue(user.getUserId().equals(userId));
user = persistence.getUserByAccessKey(accessKey);
assertUser("bcheng1234", user);
assertTrue(user.getAccessKey().equals(accessKey));
for (User u : users) {
persistence.deleteUser(u.getUserName());
}
verifyUserCleanup(users, persistence);
logger.info("testgetUserByIdNameAndKey succeeded");