use of org.jivesoftware.smackx.chat_markers.element.ChatMarkersElements.MarkableExtension in project Smack by igniterealtime.
the class MarkableExtensionTest method checkMarkableProvider.
@Test
public void checkMarkableProvider() throws Exception {
XmlPullParser parser = PacketParserUtils.getParserFor(markableExtension);
MarkableExtension markableExtension1 = new MarkableProvider().parse(parser);
assertEquals(markableExtension, markableExtension1.toXML().toString());
Message message = PacketParserUtils.parseStanza(markableMessageStanza);
MarkableExtension markableExtension2 = MarkableExtension.from(message);
assertEquals(markableExtension, markableExtension2.toXML().toString());
}
Aggregations