@Test public void checkNickChanges() { simulateAuthedJoin(); simulateNickChange(); assertEquals(nickServ.getUsername(mockNetwork, "NewNick"), "Yes"); }
public String getUsername(Network network, String nick) { return authHandlers.get(network) .getUsername(nick); }
NickServPlugin implements PluginWithDependencies { public String getUsername(Network network, String nick) { return authHandlers.get(network) .getUsername(nick); } }
NickServPlugin implements PluginWithDependencies { public String getUsername(Network network, String nick) { return authHandlers.get(network) .getUsername(nick); } NickServPlugin(); }
NickServPlugin implements PluginWithDependencies { public String getUsername(Network network, String nick) { return authHandlers.get(network) .getUsername(nick); } NickServPlugin(); String getDescription(); void incomingEvent(Event e); void checkForNewJoinsOrPerformSingleWHO(Object[] argsObjects); void checkForNewJoinsOrPerformChannelWHO(Object[] argsObjects); final void fakeNickServAuthentication(Network network, String nickname, String username); void addEventDistributor(EventDistributor eventDistributor); void addWand(Wand wand); boolean isAuthed(Network network, String nick); String getUsername(Network network, String nick); String[] getDependencies(); void loadDependency(Plugin plugin); }
NickServPlugin implements PluginWithDependencies { public String getUsername(Network network, String nick) { return authHandlers.get(network) .getUsername(nick); } NickServPlugin(); String getDescription(); void incomingEvent(Event e); void checkForNewJoinsOrPerformSingleWHO(Object[] argsObjects); void checkForNewJoinsOrPerformChannelWHO(Object[] argsObjects); final void fakeNickServAuthentication(Network network, String nickname, String username); void addEventDistributor(EventDistributor eventDistributor); void addWand(Wand wand); boolean isAuthed(Network network, String nick); String getUsername(Network network, String nick); String[] getDependencies(); void loadDependency(Plugin plugin);  }