You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ay...@apache.org on 2014/02/26 12:26:15 UTC

git commit: fix jaxrs websocket test by adding the correct content-type

Repository: cxf
Updated Branches:
  refs/heads/master bfad2ef00 -> 36ec4ee12


fix jaxrs websocket test by adding the correct content-type


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

Branch: refs/heads/master
Commit: 36ec4ee128a3da7e84155083cce20795dc9296d3
Parents: bfad2ef
Author: Akitoshi Yoshida <ay...@apache.org>
Authored: Wed Feb 26 12:25:22 2014 +0100
Committer: Akitoshi Yoshida <ay...@apache.org>
Committed: Wed Feb 26 12:25:22 2014 +0100

----------------------------------------------------------------------
 .../systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/36ec4ee1/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java
index 1933079..64ca53e 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/JAXRSClientServerWebSocketTest.java
@@ -44,7 +44,7 @@ public class JAXRSClientServerWebSocketTest extends AbstractBusClientServerTestB
         
     @Test
     // seems to cause PermGen issue to another systests/jaxrs later in some system. the code under analysis
-    @org.junit.Ignore 
+    @org.junit.Ignore
     public void testBookWithWebSocket() throws Exception {
         String address = "ws://localhost:" + PORT + "/bookstore";
 
@@ -74,7 +74,7 @@ public class JAXRSClientServerWebSocketTest extends AbstractBusClientServerTestB
             
             // call the POST service
             wsclient.reset(1);
-            wsclient.sendMessage("POST /bookstore/booksplain\r\n\r\n123".getBytes());
+            wsclient.sendMessage("POST /bookstore/booksplain\r\nContent-Type: text/plain\r\n\r\n123".getBytes());
             assertTrue("response expected", wsclient.await(3));
             received = wsclient.getReceivedBytes();
             value = new String(received.get(0));