cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to the NIO test
Date Fri, 11 Aug 2017 10:23:01 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 0ada3f2b8 -> 35f9fbdac


Minor update to the NIO test


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

Branch: refs/heads/master
Commit: 35f9fbdac1c8541915a7ace515d17d898758c251
Parents: 0ada3f2
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Aug 11 11:22:43 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Aug 11 11:22:43 2017 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java   | 2 +-
 .../java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/35f9fbda/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java
index 3cba5c4..34d2e53 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStore.java
@@ -85,7 +85,7 @@ public class NioBookStore {
     }
 
     @POST
-    @Consumes(MediaType.APPLICATION_OCTET_STREAM)
+    @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.TEXT_PLAIN)
     public void uploadBookStream(@Suspended AsyncResponse response) {
         final ByteArrayOutputStream out = new ByteArrayOutputStream();

http://git-wip-us.apache.org/repos/asf/cxf/blob/35f9fbda/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java
index 75265ec..f7efd9a 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/nio/NioBookStoreTest.java
@@ -76,7 +76,7 @@ public class NioBookStoreTest extends AbstractBusClientServerTestBase {
     @Test
     public void testPostBookStore() throws IOException {
         final Response response = createWebClient("/bookstore", MediaType.TEXT_PLAIN)
-            .type(MediaType.APPLICATION_OCTET_STREAM)
+            .type(MediaType.TEXT_PLAIN)
             .post(IOUtils.readBytesFromStream(getClass().getResourceAsStream("/files/books.txt")));
 
         try {


Mime
View raw message