You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by am...@apache.org on 2018/01/10 17:33:29 UTC

[cxf] branch master updated: Ensure test compatibility with JAX-RS 2.0

This is an automated email from the ASF dual-hosted git repository.

amccright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 866fed0  Ensure test compatibility with JAX-RS 2.0
866fed0 is described below

commit 866fed0673f33c2c023e6da5489b9f22656fa394
Author: Andy McCright <j....@gmail.com>
AuthorDate: Wed Jan 10 11:33:00 2018 -0600

    Ensure test compatibility with JAX-RS 2.0
    
    JAX-RS 2.1 defaults the no-longer-used getSize method to -1, but in
    order to run an JAX-RS 2.0, we must have an implementation of this
    method.
---
 .../org/apache/cxf/microprofile/client/mock/HighPriorityMBW.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rt/rs/microprofile-client/src/test/java/org/apache/cxf/microprofile/client/mock/HighPriorityMBW.java b/rt/rs/microprofile-client/src/test/java/org/apache/cxf/microprofile/client/mock/HighPriorityMBW.java
index 65cc859..96070b4 100644
--- a/rt/rs/microprofile-client/src/test/java/org/apache/cxf/microprofile/client/mock/HighPriorityMBW.java
+++ b/rt/rs/microprofile-client/src/test/java/org/apache/cxf/microprofile/client/mock/HighPriorityMBW.java
@@ -53,6 +53,12 @@ public class HighPriorityMBW implements MessageBodyWriter<MyObject> {
     }
 
     @Override
+    public long getSize(MyObject o, Class<?> type, Type genericType,
+                       Annotation[] annotations, MediaType mediaType) {
+        return -1;
+    }
+
+    @Override
     public boolean isWriteable(Class<?> type, Type genericType,
                                Annotation[] annotations, MediaType mediaType) {
         return true;

-- 
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].