use of org.jivesoftware.smackx.message_correct.element.MessageCorrectExtension in project Smack by igniterealtime.
the class MessageCorrectExtensionTest method checkStanzas.
@Test
public void checkStanzas() throws Exception {
Message initialMessage = (Message) PacketParserUtils.parseStanza(initialMessageXml);
MessageCorrectExtension messageCorrectExtension = new MessageCorrectExtension(idInitialMessage);
Assert.assertEquals(messageCorrectExtension.toXML().toString(), messageCorrectionXml);
initialMessage.addExtension(messageCorrectExtension);
Assert.assertEquals(initialMessage.toXML(), expectedXml);
}
Aggregations