You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by de...@apache.org on 2020/02/01 21:21:48 UTC
[cxf] branch master updated: [CXF-7996] added a testcase,
currently failing
This is an automated email from the ASF dual-hosted git repository.
deki 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 74f8ead [CXF-7996] added a testcase, currently failing
74f8ead is described below
commit 74f8eadec22fed12c802cf087cad17163e49c59b
Author: Dennis Kieselhorst <de...@apache.org>
AuthorDate: Sat Feb 1 22:20:59 2020 +0100
[CXF-7996] added a testcase, currently failing
---
.../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();