@Test public void testAddUser() { VistaUserMap userMap = new VistaUserMap(); VistaUserDetails u = createUser("12345", "9F2B", "982", "FOO", "BAR"); userMap.addUser(u); assertEquals(1, userMap.getUserCount()); assertSame(u, userMap.getUser("9F2B", "982", "FOO", "BAR")); }
public void addUser(VistaUserDetails user) throws IllegalArgumentException { Assert.notNull(user, "Must be a valid User"); logger.info("Adding user [" + getKey(user) + "]"); this.userMap.put(getKey(user), user); }
VistaUserMap { public void addUser(VistaUserDetails user) throws IllegalArgumentException { Assert.notNull(user, "Must be a valid User"); logger.info("Adding user [" + getKey(user) + "]"); this.userMap.put(getKey(user), user); } }
VistaUserMap { public void addUser(VistaUserDetails user) throws IllegalArgumentException { Assert.notNull(user, "Must be a valid User"); logger.info("Adding user [" + getKey(user) + "]"); this.userMap.put(getKey(user), user); }  }
VistaUserMap { public void addUser(VistaUserDetails user) throws IllegalArgumentException { Assert.notNull(user, "Must be a valid User"); logger.info("Adding user [" + getKey(user) + "]"); this.userMap.put(getKey(user), user); }  void addUser(VistaUserDetails user); VistaUserDetails getUser(String vistaId, String division, String accessCode, String verifyCode); VistaUserDetails getUser(String vistaId, String division, String appHandle); int getUserCount(); void setUsers(Map<String, VistaUserDetails> users); }
VistaUserMap { public void addUser(VistaUserDetails user) throws IllegalArgumentException { Assert.notNull(user, "Must be a valid User"); logger.info("Adding user [" + getKey(user) + "]"); this.userMap.put(getKey(user), user); }  void addUser(VistaUserDetails user); VistaUserDetails getUser(String vistaId, String division, String accessCode, String verifyCode); VistaUserDetails getUser(String vistaId, String division, String appHandle); int getUserCount(); void setUsers(Map<String, VistaUserDetails> users);  }