@Test public void testCreateJoinSuccessMessage () { Buffer content = MessageFactory.createJoinSuccessMessage(10); assertEquals(Protocol.MSG_TYPE_GS, content.getByte(0)); assertEquals(Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, content.getByte(1)); assertEquals(Protocol.MSG_PROTOCOL_VERSION, content.getShort(2)); assertEquals(10, content.getInt(4)); }
public static Buffer createJoinSuccessMessage (int cid) { return MessageUtils.createMsg(Protocol.MSG_TYPE_GS, Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, cid); }
MessageFactory { public static Buffer createJoinSuccessMessage (int cid) { return MessageUtils.createMsg(Protocol.MSG_TYPE_GS, Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, cid); } }
MessageFactory { public static Buffer createJoinSuccessMessage (int cid) { return MessageUtils.createMsg(Protocol.MSG_TYPE_GS, Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, cid); } protected  MessageFactory(); }
MessageFactory { public static Buffer createJoinSuccessMessage (int cid) { return MessageUtils.createMsg(Protocol.MSG_TYPE_GS, Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, cid); } protected  MessageFactory(); static Buffer createJoinSuccessMessage(int cid); static Buffer createJoinFailedMessage(int cid); }
MessageFactory { public static Buffer createJoinSuccessMessage (int cid) { return MessageUtils.createMsg(Protocol.MSG_TYPE_GS, Protocol.MSG_EXTENDED_TYPE_JOIN_RESPONSE, cid); } protected  MessageFactory(); static Buffer createJoinSuccessMessage(int cid); static Buffer createJoinFailedMessage(int cid);  }