Skip to content

Commit

Permalink
Add test to demonstrate NoSuchElement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Rapp committed May 20, 2016
1 parent a5143e0 commit 8d983c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

public class URLTokenFilterTest extends BaseTokenStreamTestCase {
public static final String TEST_HTTP_URL = "http://www.foo.bar.com:9200/index_name/type_name/_search.html?foo=bar&baz=bat#tag";
public static final String TEST_HTTP_URL2 = "http://www.foo.bar.com";
public static final String TEST_HTTPS_URL = "https://www.foo.bar.com:9200/index_name/type_name/_search.html?foo=bar&baz=bat#tag";

@Test
Expand All @@ -36,6 +37,7 @@ public void testFilterPort() throws IOException {
@Test
public void testFilterPath() throws IOException {
assertTokenStreamContents(createFilter(TEST_HTTP_URL, URLPart.PATH).setTokenizePath(false), "/index_name/type_name/_search.html");
assertTokenStreamContents(createFilter(TEST_HTTP_URL2, URLPart.PATH).setTokenizePath(false), "");
}

@Test
Expand Down

0 comments on commit 8d983c0

Please sign in to comment.