Пример #1
0
  public void testParseXml() throws Exception {
    PayloadXmlMsgParser parser = new PayloadXmlMsgParser(TEST_XML);
    PayloadArrayWrapper profile = (PayloadArrayWrapper) parser.getPayloadDescriptor();

    PlistDebug.logTest(profile.toString());

    assertEquals(profile, createProfile());
    assertEquals(parser.getPayload(PayloadBase.PAYLOAD_TYPE_MEMORY_POLICY), getPolicy());
    assertTrue(
        ObjectComparator.equals(
            parser.getPayload(PayloadBase.PAYLOAD_TYPE_MEMORY_POLICY), getPolicy()));
  }
Пример #2
0
 public void testGenXml() throws Exception {
   PayloadArrayWrapper profile = createProfile();
   String xml = profile.toXml();
   PlistDebug.logTest(xml);
   assertEquals(xml, TEST_XML);
 }
Пример #3
0
 public void testGenAppXml() throws Exception {
   PayloadBase settings = getPolicy();
   String xml = settings.toXml();
   PlistDebug.logTest(xml);
   assertEquals(xml, TEST_APP_XML);
 }