@Test public void testJerseyParse() throws Exception { if (testCase.generatedPath.isPresent()) { PathParser.ParsedPath parsed = PathParser.parse(testCase.path); UriTemplateParser parser = new UriTemplateParser(parsed.toPath()); } }
public static ParsedPath parse(String path) { Parser parser = new Parser(path); List<Segment> segments = new ArrayList<>(); while (parser.hasNext()) { Segment segment = parseSegment(parser); if (segment != null) { segments.add(segment); } } return new ParsedPath(segments); }
PathParser { public static ParsedPath parse(String path) { Parser parser = new Parser(path); List<Segment> segments = new ArrayList<>(); while (parser.hasNext()) { Segment segment = parseSegment(parser); if (segment != null) { segments.add(segment); } } return new ParsedPath(segments); } }
PathParser { public static ParsedPath parse(String path) { Parser parser = new Parser(path); List<Segment> segments = new ArrayList<>(); while (parser.hasNext()) { Segment segment = parseSegment(parser); if (segment != null) { segments.add(segment); } } return new ParsedPath(segments); }  }
PathParser { public static ParsedPath parse(String path) { Parser parser = new Parser(path); List<Segment> segments = new ArrayList<>(); while (parser.hasNext()) { Segment segment = parseSegment(parser); if (segment != null) { segments.add(segment); } } return new ParsedPath(segments); }  static ParsedPath parse(String path); }
PathParser { public static ParsedPath parse(String path) { Parser parser = new Parser(path); List<Segment> segments = new ArrayList<>(); while (parser.hasNext()) { Segment segment = parseSegment(parser); if (segment != null) { segments.add(segment); } } return new ParsedPath(segments); }  static ParsedPath parse(String path);  }