@Test public void testGenerateLogoutResponse() { ServerMessageFactory serverMessageFactory = new ServerMessageFactory(); Message message = serverMessageFactory.generateLogoutResponse(true); assertEquals(message.name, "LogoutResponse"); assertEquals(message.getArgument("success"), true); }
public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; }
ServerMessageFactory { public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; } }
ServerMessageFactory { public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; }  }
ServerMessageFactory { public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; }  Message generateLogoutResponse(boolean success); Message generateLoginResponse(boolean success, long loggedInTime); }
ServerMessageFactory { public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; }  Message generateLogoutResponse(boolean success); Message generateLoginResponse(boolean success, long loggedInTime);  }