cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r547506 - /incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java
Date Fri, 15 Jun 2007 03:14:20 GMT
Author: ffang
Date: Thu Jun 14 20:14:19 2007
New Revision: 547506

URL: http://svn.apache.org/viewvc?view=rev&rev=547506
Log:
enable test in JBIConduitTest

Modified:
    incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java

Modified: incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java?view=diff&rev=547506&r1=547505&r2=547506
==============================================================================
--- incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java
(original)
+++ incubator/cxf/trunk/rt/transports/jbi/src/test/java/org/apache/cxf/transport/jbi/JBIConduitTest.java
Thu Jun 14 20:14:19 2007
@@ -21,6 +21,7 @@
 
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
+import java.io.InputStream;
 import java.io.OutputStream;
 import java.lang.reflect.Member;
 import java.lang.reflect.Method;
@@ -39,8 +40,8 @@
 import org.apache.cxf.message.MessageImpl;
 import org.apache.cxf.service.model.BindingMessageInfo;
 import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.staxutils.StaxUtils;
 import org.easymock.classextension.EasyMock;
-import org.junit.Ignore;
 import org.junit.Test;
 
 public class JBIConduitTest extends AbstractJBITest {
@@ -62,7 +63,6 @@
     }
     
     @Test
-    @Ignore
     public void testSendOut() throws Exception {
         LOG.info("test send");
         JBIConduit conduit = setupJBIConduit(true, false); 
@@ -106,8 +106,11 @@
         OutputStream os = message.getContent(OutputStream.class);
         assertTrue("The OutputStream should not be null ", os != null);
         os.write("HelloWorld".getBytes());
-        os.close();               
-        XMLStreamReader reader = inMessage.getContent(XMLStreamReader.class);
+        os.close();              
+        InputStream is = inMessage.getContent(InputStream.class);
+        assertNotNull(is);
+        XMLStreamReader reader = StaxUtils.createXMLStreamReader(is, null);
+        assertNotNull(reader);
         reader.nextTag();
          
         String reponse = reader.getElementText();



Mime
View raw message