@Test public void correctly_split_double_segment() { String url = "129136207330/good-times-only"; List<String> splits = urlTokenizer.splitUrl(url); assertTrue(splits.contains("129136207330")); assertTrue(splits.contains("good-times-only")); assertTrue(splits.contains(url)); assertEquals(3, 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();  }