diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-24 13:06:38 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-24 13:06:38 +0100 |
commit | 0eb6bde381b186ec08f308c93180c9fe28733cf9 (patch) | |
tree | 86b1e0b548673150e2200a20e5deafefbb2683ed /vespaclient-container-plugin | |
parent | cd81b64daa45831ba99b8d93bdc5a4d33943ee11 (diff) |
Add getRawUri()
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r-- | vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/RestUriTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/RestUriTest.java b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/RestUriTest.java index db1fe220614..5f646286254 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/RestUriTest.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/RestUriTest.java @@ -108,10 +108,10 @@ public class RestUriTest { @Test public void testDocIdAsIs() throws Exception { - RestUri restUri = new RestUri(new URI("/document/v1/test/newsarticle/docid/http://vn.news.yahoo.com/gi-th-ng-t-n-ng-khoa-h-205000458.html").normalize()); + RestUri restUri = new RestUri(new URI("/document/v1/test/newsarticle/docid/http://vn.news.yahoo.com/gi-th-ng-t-n-ng-khoa-h-205000458.html")); assertThat(restUri.getNamespace(), is("test")); assertThat(restUri.getDocumentType(), is("newsarticle")); - assertThat(restUri.getDocId(), is("http://vn.news.yahoo.com/gi-th-ng-t-n-ng-khoa-h-205000458.html")); + assertThat(restUri.getDocId(), is("http://vn.news.yahoo.com//gi-th-ng-t-n-ng-khoa-h-205000458.html")); assertThat(restUri.generateFullId(), is("id:test:newsarticle::http://vn.news.yahoo.com/gi-th-ng-t-n-ng-khoa-h-205000458.html")); } |