package com.jfinal.weixin.sdk.utils; import org.junit.Assert; import com.jfinal.weixin.sdk.msg.InMsgParser; import com.jfinal.weixin.sdk.msg.in.InMsg; public class DomTest { public static void test1() { String xml = "" + "" + "1449500550" + "" + "39.845342" + "116.314655" + "15" + "" + "6225557458185254102" + ""; InMsg in = InMsgParser.parse(xml); Assert.assertNotNull(in); } public static void test2() { String xml = "" + "" + "" + "1449500550" + "" + "" + ""; InMsg in = InMsgParser.parse(xml); Assert.assertNotNull(in); } public static void main(String[] args) { test1(); test2(); } }