@Test public void templateWithOnlyPlainText() throws Exception { List<String> segments = parse("plain text only"); assertSegments(segments, "plain text only"); }
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);  }