@Test public void constructor() throws Exception { final CollectdPushBuilder builder = new CollectdPushBuilder(); builder.setAsPath(SimpleGroupPath.valueOf("foo", "bar")); builder.setMain("bla"); final CollectdPushCollector collectd = builder.build(er); assertEquals(SimpleGroupPath.valueOf("foo", "bar"), collectd.getBasePath()); verify(er, times(1)).accept(Mockito.eq(CollectdPushCollector.API_ENDPOINT_BASE + "bla"), Mockito.anyObject()); verifyNoMoreInteractions(er); }
@Override public CollectdPushCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new CollectdPushCollector(er, asPath, main); }
CollectdPushBuilder implements CollectorBuilder, MainString, AcceptAsPath { @Override public CollectdPushCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new CollectdPushCollector(er, asPath, main); } }
CollectdPushBuilder implements CollectorBuilder, MainString, AcceptAsPath { @Override public CollectdPushCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new CollectdPushCollector(er, asPath, main); }  }
CollectdPushBuilder implements CollectorBuilder, MainString, AcceptAsPath { @Override public CollectdPushCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new CollectdPushCollector(er, asPath, main); }  @Override CollectdPushCollector build(BiConsumer<String, HttpServlet> er); }
CollectdPushBuilder implements CollectorBuilder, MainString, AcceptAsPath { @Override public CollectdPushCollector build(BiConsumer<String, HttpServlet> er) throws Exception { return new CollectdPushCollector(er, asPath, main); }  @Override CollectdPushCollector build(BiConsumer<String, HttpServlet> er);  }