cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r903784 - /cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java
Date Wed, 27 Jan 2010 18:59:27 GMT
Author: dkulp
Date: Wed Jan 27 18:59:27 2010
New Revision: 903784

URL: http://svn.apache.org/viewvc?rev=903784&view=rev
Log:
Fix compile failure

Modified:
    cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java

Modified: cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java?rev=903784&r1=903783&r2=903784&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java
(original)
+++ cxf/branches/2.2.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSJmsTest.java
Wed Jan 27 18:59:27 2010
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.systest.jaxrs;
 
+import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.InputStream;
 import java.util.HashMap;
@@ -87,7 +88,8 @@
             MessageConsumer consumer = session.createConsumer(replyToDestination);
             Message jmsMessage = consumer.receive(3000);
             org.apache.cxf.message.Message cxfMessage = new org.apache.cxf.message.MessageImpl();
-            JMSUtils.retrieveAndSetPayload(cxfMessage, jmsMessage, null);
+            byte[] bytes = JMSUtils.retrievePayload(jmsMessage, null);
+            cxfMessage.setContent(InputStream.class, new ByteArrayInputStream(bytes));
             Book b = readBook(cxfMessage.getContent(InputStream.class));
             assertEquals(124L, b.getId());
             assertEquals("JMS", b.getName());



Mime
View raw message