cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1333860 - in /cxf/branches/2.5.x-fixes: ./ rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java
Date Fri, 04 May 2012 10:23:27 GMT
Author: sergeyb
Date: Fri May  4 10:23:27 2012
New Revision: 1333860

URL: http://svn.apache.org/viewvc?rev=1333860&view=rev
Log:
Merged revisions 1333857 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1333857 | sergeyb | 2012-05-04 11:20:02 +0100 (Fri, 04 May 2012) | 1 line
  
  [CXF-4281] Adding one mmore UriBuilder test with duplicate template vars
........

Modified:
    cxf/branches/2.5.x-fixes/   (props changed)
    cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/trunk:r1333857

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java?rev=1333860&r1=1333859&r2=1333860&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/UriBuilderImplTest.java
Fri May  4 10:23:27 2012
@@ -984,6 +984,16 @@ public class UriBuilderImplTest extends 
             .buildFromEncoded("xy", " ", "%");
         assertEquals(expected, uri.toString());        
     }
+    
+    @Test
+    public void testFromEncodedDuplicateVar3() {
+        String expected = "http://localhost:8080/1/2/3/1";
+        URI uri = UriBuilder.fromPath("http://localhost:8080")
+                            .path("/{a}/{b}/{c}/{a}")
+                            .buildFromEncoded("1", "2", "3");
+
+        assertEquals(expected, uri.toString());        
+    }
 
     @Test
     public void testNullMapValue() {



Mime
View raw message