[jboss-svn-commits] JBL Code SVN: r31561 - labs/jbossrules/branches/camel_jaxb_marshaller2-lucaz/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Feb 10 21:26:45 EST 2010


Author: lucazamador
Date: 2010-02-10 21:26:44 -0500 (Wed, 10 Feb 2010)
New Revision: 31561

Modified:
   labs/jbossrules/branches/camel_jaxb_marshaller2-lucaz/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component/CamelEndpointWithJaxWrapperCollectionTest.java
Log:
fixed missing unmarshaller

Modified: labs/jbossrules/branches/camel_jaxb_marshaller2-lucaz/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component/CamelEndpointWithJaxWrapperCollectionTest.java
===================================================================
--- labs/jbossrules/branches/camel_jaxb_marshaller2-lucaz/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component/CamelEndpointWithJaxWrapperCollectionTest.java	2010-02-10 22:41:14 UTC (rev 31560)
+++ labs/jbossrules/branches/camel_jaxb_marshaller2-lucaz/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component/CamelEndpointWithJaxWrapperCollectionTest.java	2010-02-11 02:26:44 UTC (rev 31561)
@@ -72,6 +72,7 @@
 		byte[] response = (byte[]) template.requestBodyAndHeader("direct:test-with-session", xml.toString(), "jaxb-context", jaxbContext);
 		assertNotNull(response);
 		System.out.println("response:\n" + new String(response));
+		Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
 		ExecutionResults res = (ExecutionResults) unmarshaller.unmarshal(new ByteArrayInputStream(response));
 		WrappedList resp = (WrappedList) res.getValue("list");
 		assertNotNull(resp);



More information about the jboss-svn-commits mailing list