@Test public void testDOMProperty() throws Exception { final String expectedXML = "<one number=\"1\"><two number=\"2\"/></one>"; final Element expectedDOM = new ElementPuller().pull(new StringReader(expectedXML)); RemoteMessage msg = new RemoteMessage(); msg.getContext().setProperty("one", expectedDOM); msg = serDeser(msg, RemoteMessage.class); final Element actualDOM = (Element)msg.getContext().getProperty("one").getValue(); final String actualXML = XMLHelper.toString(actualDOM); Assert.assertEquals(expectedXML, actualXML); }
public Context getContext() { return _context; }
RemoteMessage { public Context getContext() { return _context; } }
RemoteMessage { public Context getContext() { return _context; } RemoteMessage();  RemoteMessage(QName domain, QName service); }
RemoteMessage { public Context getContext() { return _context; } RemoteMessage();  RemoteMessage(QName domain, QName service); Context getContext(); Object getContent(); RemoteMessage setContent(Object content); QName getService(); RemoteMessage setService(QName service); QName getDomain(); RemoteMessage setDomain(QName domain); String getOperation(); RemoteMessage setOperation(String operation); RemoteMessage setFault(boolean isFault); boolean isFault(); }
RemoteMessage { public Context getContext() { return _context; } RemoteMessage();  RemoteMessage(QName domain, QName service); Context getContext(); Object getContent(); RemoteMessage setContent(Object content); QName getService(); RemoteMessage setService(QName service); QName getDomain(); RemoteMessage setDomain(QName domain); String getOperation(); RemoteMessage setOperation(String operation); RemoteMessage setFault(boolean isFault); boolean isFault();  }