cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1368114 - /cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java
Date Wed, 01 Aug 2012 16:42:39 GMT
Author: dkulp
Date: Wed Aug  1 16:42:38 2012
New Revision: 1368114

URL: http://svn.apache.org/viewvc?rev=1368114&view=rev
Log:
Merged revisions 1368103 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1368103 | dkulp | 2012-08-01 12:24:24 -0400 (Wed, 01 Aug 2012) | 2 lines

  Make sure the test case wires the message parts into the messageinfo

........

Modified:
    cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java

Modified: cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java?rev=1368114&r1=1368113&r2=1368114&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java
Wed Aug  1 16:42:38 2012
@@ -103,12 +103,18 @@ public class DocLiteralInInterceptorTest
         exchange.put(Endpoint.class, endpoint);
         
         OperationInfo operationInfo = new OperationInfo();
+        operationInfo.setProperty("operation.is.synthetic", Boolean.TRUE);
         MessageInfo messageInfo = new MessageInfo(operationInfo, Type.INPUT, 
                                                   new QName("http://foo.com", "bar"));
         messageInfo.addMessagePart(new MessagePartInfo(new QName("http://foo.com", "partInfo1"),
null));
         messageInfo.addMessagePart(new MessagePartInfo(new QName("http://foo.com", "partInfo2"),
null));
         messageInfo.addMessagePart(new MessagePartInfo(new QName("http://foo.com", "partInfo3"),
null));
         messageInfo.addMessagePart(new MessagePartInfo(new QName("http://foo.com", "partInfo4"),
null));
+        
+        for (MessagePartInfo mpi : messageInfo.getMessageParts()) {
+            mpi.setMessageContainer(messageInfo);
+        }
+        
         operationInfo.setInput("inputName", messageInfo);
         
         BindingOperationInfo boi = new BindingOperationInfo(null, operationInfo);



Mime
View raw message