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())); }
public void testParseAppXml() throws Exception { MemorySizePolicy policy = MemorySizePolicy.fromXmlT(TEST_APP_XML, MemorySizePolicy.class); assertEquals(policy, getPolicy()); assertTrue(ObjectComparator.equals(policy, getPolicy())); }