@Test public void correctly_splits_url_without_domain_or_protocol() { String url = "129136207330/good-times-only?one=two&three=four"; List<String> splits = urlTokenizer.splitUrl(url); assertTrue(splits.contains("129136207330")); assertTrue(splits.contains("129136207330/good-times-only")); assertTrue(splits.contains("good-times-only")); assertTrue(splits.contains("one=two")); assertTrue(splits.contains("three=four")); assertEquals(5, splits.size()); }
protected List<String> splitUrl(String url) { return splitUrl(url, true); }
UrlTokenizer extends Tokenizer { protected List<String> splitUrl(String url) { return splitUrl(url, true); } }
UrlTokenizer extends Tokenizer { protected List<String> splitUrl(String url) { return splitUrl(url, true); } UrlTokenizer(); }
UrlTokenizer extends Tokenizer { protected List<String> splitUrl(String url) { return splitUrl(url, true); } UrlTokenizer(); @Override final boolean incrementToken(); @Override void end(); @Override void reset(); }
UrlTokenizer extends Tokenizer { protected List<String> splitUrl(String url) { return splitUrl(url, true); } UrlTokenizer(); @Override final boolean incrementToken(); @Override void end(); @Override void reset();  }