cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: fix the test error by adjusting its setup for CXF-5855
Date Thu, 17 Mar 2016 10:24:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 62ca4018b -> aafcec2b3


fix the test error by adjusting its setup for CXF-5855


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

Branch: refs/heads/master
Commit: aafcec2b3466bddb4c0de34417391c9c3d595b77
Parents: 62ca401
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Thu Mar 17 11:17:57 2016 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Mar 17 11:17:57 2016 +0100

----------------------------------------------------------------------
 .../websocket/atmosphere/DefaultProtocolInterceptorTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/aafcec2b/rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/atmosphere/DefaultProtocolInterceptorTest.java
----------------------------------------------------------------------
diff --git a/rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/atmosphere/DefaultProtocolInterceptorTest.java
b/rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/atmosphere/DefaultProtocolInterceptorTest.java
index e6b70af..1dee1de 100644
--- a/rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/atmosphere/DefaultProtocolInterceptorTest.java
+++ b/rt/transports/websocket/src/test/java/org/apache/cxf/transport/websocket/atmosphere/DefaultProtocolInterceptorTest.java
@@ -25,7 +25,10 @@ import java.util.Map;
 
 import org.apache.cxf.transport.websocket.WebSocketUtils;
 import org.atmosphere.cpr.AtmosphereRequest;
+import org.atmosphere.cpr.AtmosphereResource;
+import org.atmosphere.cpr.AtmosphereResourceImpl;
 import org.atmosphere.cpr.AtmosphereResponse;
+import org.atmosphere.cpr.FrameworkConfig;
 
 import org.junit.Assert;
 import org.junit.Test;
@@ -40,6 +43,9 @@ public class DefaultProtocolInterceptorTest extends Assert {
         DefaultProtocolInterceptor dpi = new DefaultProtocolInterceptor();
         AtmosphereRequest request = AtmosphereRequest.newInstance();
         AtmosphereResponse response = AtmosphereResponse.newInstance();
+        AtmosphereResourceImpl resource = new AtmosphereResourceImpl();
+        resource.transport(AtmosphereResource.TRANSPORT.WEBSOCKET);
+        request.localAttributes().put(FrameworkConfig.ATMOSPHERE_RESOURCE, resource);
         response.request(request);
         String payload = "hello cxf";
         String contentType = "text/plain";


Mime
View raw message