@Test public void constructor() throws Exception { final UrlJsonBuilder builder = new UrlJsonBuilder(); builder.setMain("test"); builder.setAsPath(SimpleGroupPath.valueOf("some", "path")); builder.setTagSet(NameBoundResolver.EMPTY); final UrlJsonCollector urlGet = builder.build(er); assertEquals(SimpleGroupPath.valueOf("some", "path"), urlGet.getBaseGroupName()); assertEquals("test", urlGet.getPatterns().getUrlTemplate().toString()); assertSame(NameBoundResolver.EMPTY, urlGet.getPatterns().getTemplateArgs()); }
@Override public UrlJsonCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new UrlJsonCollector(asPath, new UrlPattern(main, tagSet)); }
UrlJsonBuilder implements CollectorBuilder, MainString, AcceptAsPath, AcceptTagSet { @Override public UrlJsonCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new UrlJsonCollector(asPath, new UrlPattern(main, tagSet)); } }
UrlJsonBuilder implements CollectorBuilder, MainString, AcceptAsPath, AcceptTagSet { @Override public UrlJsonCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new UrlJsonCollector(asPath, new UrlPattern(main, tagSet)); }  }
UrlJsonBuilder implements CollectorBuilder, MainString, AcceptAsPath, AcceptTagSet { @Override public UrlJsonCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new UrlJsonCollector(asPath, new UrlPattern(main, tagSet)); }  @Override UrlJsonCollector build(BiConsumer<String, HttpServlet> er); }
UrlJsonBuilder implements CollectorBuilder, MainString, AcceptAsPath, AcceptTagSet { @Override public UrlJsonCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new UrlJsonCollector(asPath, new UrlPattern(main, tagSet)); }  @Override UrlJsonCollector build(BiConsumer<String, HttpServlet> er);  }