cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/2] git commit: Fix test due to differences on 2.7.x
Date Thu, 20 Mar 2014 18:47:04 GMT
Fix test due to differences on 2.7.x


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c0937735
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c0937735
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c0937735

Branch: refs/heads/2.7.x-fixes
Commit: c0937735de89593b34cd850d700e7f7b94cfe88b
Parents: 8523c78
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Mar 20 14:46:29 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Mar 20 14:46:29 2014 -0400

----------------------------------------------------------------------
 .../apache/cxf/systest/interceptor/InterceptorFaultTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c0937735/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
----------------------------------------------------------------------
diff --git a/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
b/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
index 271bde4..8596763 100644
--- a/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
+++ b/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
@@ -197,10 +197,11 @@ public class InterceptorFaultTest extends AbstractBusClientServerTestBase
{
             // writer to grab the content of soap fault.
             // robust is not yet used at client's side, but I think it should
             StringWriter writer = new StringWriter();
-            ((Client)greeter).getInInterceptors().add(new LoggingInInterceptor());
+            Client client = ClientProxy.getClient(greeter);
+            client.getInInterceptors().add(new LoggingInInterceptor());
             ((LoggingInInterceptor)greeterBus.getInInterceptors().get(0)).setPrintWriter(new
PrintWriter(writer));
             // it should tell CXF to convert one-way robust out faults into real SoapFaultException
-            ((Client)greeter).getEndpoint().put(Message.ROBUST_ONEWAY, true);
+            client.getEndpoint().put(Message.ROBUST_ONEWAY, true);
             greeter.greetMeOneWay("oneway");
             fail("Oneway operation unexpectedly succeded for phase " + location.getPhase());
         } catch (WebServiceException ex) {


Mime
View raw message