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

coheigea pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 54986dde25a864b6f5c3a47ff47934e4927afac6
Author: Dennis Kieselhorst <[email protected]>
AuthorDate: Sat Feb 1 22:20:59 2020 +0100

    [CXF-7996] added a testcase, currently failing
    
    (cherry picked from commit 74f8eadec22fed12c802cf087cad17163e49c59b)
---
 .../org/apache/cxf/jaxrs/impl/LinkBuilderImplTest.java     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git 
a/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/LinkBuilderImplTest.java
 
b/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/LinkBuilderImplTest.java
index bbcf544..cbb3b94 100644
--- 
a/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/LinkBuilderImplTest.java
+++ 
b/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/LinkBuilderImplTest.java
@@ -26,7 +26,9 @@ import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.core.Link;
 import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.UriBuilderException;
 
+import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
@@ -101,6 +103,18 @@ public class LinkBuilderImplTest {
     }
 
     @Test
+    @Ignore("to be fixed for TCK")
+    public void testNoArgsThrowsUriBuilderExceptionTest() {
+        Link.Builder builder = Link.fromUri("http://:@";);
+        try {
+            Link link = builder.build();
+            fail("No exception has been thrown for link " + link);
+        } catch (UriBuilderException e) {
+            //expected
+        }
+    }
+
+    @Test
     public void testSeveralAttributes() throws Exception {
         Link.Builder linkBuilder = new LinkBuilderImpl();
         Link prevLink = 
linkBuilder.uri("http://example.com/page1";).rel("previous").title("A 
title").build();

Reply via email to