knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject [1/6] knox git commit: Revert "KNOX-690 quick unit test for toEncodedString method"
Date Sat, 17 Jun 2017 14:18:47 GMT
Repository: knox
Updated Branches:
  refs/heads/master b13c21a45 -> 680e8a6e4


Revert "KNOX-690 quick unit test for toEncodedString method"

This reverts commit d435c1eba6e2309b107d89f8bdc2cd17f18a60fd.


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/1314f1dc
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/1314f1dc
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/1314f1dc

Branch: refs/heads/master
Commit: 1314f1dccdc3db132b71b400d96a61a09073224c
Parents: b13c21a
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Tue Jun 13 17:17:17 2017 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Tue Jun 13 17:17:17 2017 -0400

----------------------------------------------------------------------
 .../gateway/util/urltemplate/TemplateTest.java      | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/1314f1dc/gateway-util-urltemplate/src/test/java/org/apache/hadoop/gateway/util/urltemplate/TemplateTest.java
----------------------------------------------------------------------
diff --git a/gateway-util-urltemplate/src/test/java/org/apache/hadoop/gateway/util/urltemplate/TemplateTest.java
b/gateway-util-urltemplate/src/test/java/org/apache/hadoop/gateway/util/urltemplate/TemplateTest.java
index 1b8a1db..c99421c 100644
--- a/gateway-util-urltemplate/src/test/java/org/apache/hadoop/gateway/util/urltemplate/TemplateTest.java
+++ b/gateway-util-urltemplate/src/test/java/org/apache/hadoop/gateway/util/urltemplate/TemplateTest.java
@@ -23,8 +23,11 @@ import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
 import java.net.URISyntaxException;
+import java.util.regex.Pattern;
 
-import static org.hamcrest.CoreMatchers.*;
+import static org.hamcrest.CoreMatchers.equalTo;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.CoreMatchers.nullValue;
 import static org.hamcrest.core.IsNot.not;
 import static org.junit.Assert.assertThat;
 
@@ -171,15 +174,4 @@ public class TemplateTest {
     assertThat( t1.equals( t3 ), equalTo( false ) );
   }
 
-  @Test
-  public void encodedToString() throws Exception {
-    String url = "scheme://username:password@host:port/top/mid/bot/file|?query|=value|#|fragment1";
-    Template t = Parser.parseLiteral(url);
-    assertThat( t.toString().equals( url ), equalTo(true));
-    assertThat( t.toEncodedString()
-        .equals( "scheme://username:password@host:port/top/mid/bot/file%7C?query%7C=value%7C#%7Cfragment1")
-        , equalTo(true));
-
-  }
-
 }


Mime
View raw message