@Test public void emptyTemplateRendersAsEmptyString() throws Exception { assertTrue(parse("").isEmpty()); }
public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; } }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  List<Segment> parseSegments(String template); List<String> parse(String template); }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  List<Segment> parseSegments(String template); List<String> parse(String template);  }