@Test public void testSerializeExtensionContent() { message.setExtensionType(type.getValue()); message.setExtensionLength(extensionLength); message.setUsername(username); message.setUsernameLength(usernameLength); assertArrayEquals(expectedBytes, serializer.serialize()); }
@Override public byte[] serializeExtensionContent() { LOGGER.debug("Serializing PWDProtectExtensionMessage"); writeUsernameLength(msg); writeUsername(msg); return getAlreadySerialized(); }
PWDProtectExtensionSerializer extends ExtensionSerializer<PWDProtectExtensionMessage> { @Override public byte[] serializeExtensionContent() { LOGGER.debug("Serializing PWDProtectExtensionMessage"); writeUsernameLength(msg); writeUsername(msg); return getAlreadySerialized(); } }
PWDProtectExtensionSerializer extends ExtensionSerializer<PWDProtectExtensionMessage> { @Override public byte[] serializeExtensionContent() { LOGGER.debug("Serializing PWDProtectExtensionMessage"); writeUsernameLength(msg); writeUsername(msg); return getAlreadySerialized(); } PWDProtectExtensionSerializer(PWDProtectExtensionMessage message); }
PWDProtectExtensionSerializer extends ExtensionSerializer<PWDProtectExtensionMessage> { @Override public byte[] serializeExtensionContent() { LOGGER.debug("Serializing PWDProtectExtensionMessage"); writeUsernameLength(msg); writeUsername(msg); return getAlreadySerialized(); } PWDProtectExtensionSerializer(PWDProtectExtensionMessage message); @Override byte[] serializeExtensionContent(); }
PWDProtectExtensionSerializer extends ExtensionSerializer<PWDProtectExtensionMessage> { @Override public byte[] serializeExtensionContent() { LOGGER.debug("Serializing PWDProtectExtensionMessage"); writeUsernameLength(msg); writeUsername(msg); return getAlreadySerialized(); } PWDProtectExtensionSerializer(PWDProtectExtensionMessage message); @Override byte[] serializeExtensionContent();  }