[jbossws-dev] RE: MTOM test
Heiko Braun
heiko.braun at jboss.com
Tue Nov 14 12:31:13 EST 2006
It tests StreamSource contents.
But this particular example more less demo's a simple MTOM scenario and
is
Not really a unit test. Does it have to?
-----Original Message-----
From: Thomas Diesler [mailto:thomas.diesler at redhat.com]
Sent: Tuesday, November 14, 2006 2:54 PM
To: Heiko Braun; jbossws-dev at lists.jboss.org
Subject: MTOM test
Heiko,
what is this actually testing? AFICS, the content of getLegacyData() can
be anything.
public void testQuery() throws Exception
{
Query query = new Query("Peter", "Pan");
Employee employee = port.queryEmployee(query);
assertNotNull(employee);
assertNotNull(employee.getLegacyData());
StreamSource xmlStream =
(StreamSource)employee.getLegacyData().getContent();
IOUtils.copyStream(System.out, xmlStream.getInputStream());
}
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
More information about the jbossws-dev
mailing list