Package tahrir.io.net.broadcasts.broadcastMessages

Examples of tahrir.io.net.broadcasts.broadcastMessages.ParsedBroadcastMessage.asXmlString()


            TrNode node = TrUtils.TestUtils.makeNode(9003, false, false, false, true, 0, 0);

    String xml = "<?xml version=\"1.0\"?>\n<bm><txt lang=\"en\">Hello there this is simple test.</txt></bm>\n" ;
        ParsedBroadcastMessage parsedBroadcastMessage = ParsedBroadcastMessage.createFromPlaintext("Hello there this is simple test.", "en", node.mbClasses.identityStore, System.currentTimeMillis());
    // convert back to XML and compare with original
    Assert.assertEquals(parsedBroadcastMessage.asXmlString(), xml);
  }

  /**
   * Create a microblog with both text and mentions.
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.