@Test public void testGenerateWorldFileResponse() { byte[] fileBytes = {2, 4, 6, 8, 10}; Message message = worldServerMessageFactory.generateWorldFileResponse(fileBytes); assertEquals(message.name, "WorldFileResponse"); assertEquals(message.getArgument("fileBytes"), fileBytes); }
public Message generateWorldFileResponse(byte[] worldFileBytes) { Message response = MessageRegistry.getInstance().createMessage("WorldFileResponse"); response.setArgument("fileBytes", worldFileBytes); return response; }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldFileResponse(byte[] worldFileBytes) { Message response = MessageRegistry.getInstance().createMessage("WorldFileResponse"); response.setArgument("fileBytes", worldFileBytes); return response; } }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldFileResponse(byte[] worldFileBytes) { Message response = MessageRegistry.getInstance().createMessage("WorldFileResponse"); response.setArgument("fileBytes", worldFileBytes); return response; }  }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldFileResponse(byte[] worldFileBytes) { Message response = MessageRegistry.getInstance().createMessage("WorldFileResponse"); response.setArgument("fileBytes", worldFileBytes); return response; }  Message generateNewlyVisibleMessage(WorldObject object); List<Message> generateChangeStateMessages(Actor changedActor); Message generateForcedStateMessage(MoveState forcedState); Message generateActorMoveSpeedMessage(double moveSpeed); Message generateNewlyInvisibleMessage(WorldObject object); Message generateWorldLoginResponse(); Message generateWorldFileResponse(byte[] worldFileBytes); Message generateWorldChecksumResponse(byte[] checkSum); }
WorldServerMessageFactory extends ServerMessageFactory { public Message generateWorldFileResponse(byte[] worldFileBytes) { Message response = MessageRegistry.getInstance().createMessage("WorldFileResponse"); response.setArgument("fileBytes", worldFileBytes); return response; }  Message generateNewlyVisibleMessage(WorldObject object); List<Message> generateChangeStateMessages(Actor changedActor); Message generateForcedStateMessage(MoveState forcedState); Message generateActorMoveSpeedMessage(double moveSpeed); Message generateNewlyInvisibleMessage(WorldObject object); Message generateWorldLoginResponse(); Message generateWorldFileResponse(byte[] worldFileBytes); Message generateWorldChecksumResponse(byte[] checkSum);  }