@Test public void testGetUser() { MessageInputStream mis = mock(MessageInputStream.class); MessageOutputStream mos = mock(MessageOutputStream.class); MessageIO messageIO = new MessageIO(mis, mos); ClientUser clientUser = mock(ClientUser.class); AuthClient authClient = new AuthClient(messageIO, clientUser); Assert.assertEquals(authClient.getUser(), clientUser, "User was incorrect."); }
public ClientUser getUser() { return user; }
AuthClient extends Client { public ClientUser getUser() { return user; } }
AuthClient extends Client { public ClientUser getUser() { return user; } AuthClient(MessageIO messageIO, ClientUser user); }
AuthClient extends Client { public ClientUser getUser() { return user; } AuthClient(MessageIO messageIO, ClientUser user); static Message generateLogoutRequest(); static Message generateLoginRequest(ClientUser user); LoginTracker getLoginTracker(); ClientUser getUser(); }
AuthClient extends Client { public ClientUser getUser() { return user; } AuthClient(MessageIO messageIO, ClientUser user); static Message generateLogoutRequest(); static Message generateLoginRequest(ClientUser user); LoginTracker getLoginTracker(); ClientUser getUser();  }