cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject svn commit: r1482426 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java
Date Tue, 14 May 2013 16:25:57 GMT
Author: ashakirin
Date: Tue May 14 16:25:56 2013
New Revision: 1482426

URL: http://svn.apache.org/r1482426
Log:
Added testConsumesResource5() checking TCK test problem for consumes with wildcards and qs
params

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java?rev=1482426&r1=1482425&r2=1482426&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/SelectMethodCandidatesTest.java
Tue May 14 16:25:56 2013
@@ -203,6 +203,11 @@ public class SelectMethodCandidatesTest 
         doTestConsumesResource(ConsumesResource4.class, "application/xml+bar", "m2");
     }
     
+    @Test
+    public void testConsumesResource5() throws Exception {
+        doTestConsumesResource(ConsumesResource5.class, "text/xml", "m2");
+    }
+
     private void doTestConsumesResource(Class<?> resourceClass, String expectedMethodName)
throws Exception {
         doTestConsumesResource(resourceClass, null, expectedMethodName);
     }
@@ -838,6 +843,17 @@ public class SelectMethodCandidatesTest 
             
         }
     }
+    public static class ConsumesResource5 {
+        @POST
+        @Consumes("text/*")
+        public void m1() {
+        }       
+        
+        @POST
+        @Consumes("text/xml;qs=0.7")
+        public void m2() {
+        }
+    }
     
     public static class ResponseMediaTypeResource {
         @GET



Mime
View raw message