@Test public void testEntryListener() throws Exception { EntryReadListener listener = mock(EntryReadListener.class); reader.getStartHandler().addListener(listener); assertEquals(1, reader.getStartHandler().getListeners().size()); reader.getStartHandler().removeListener(listener); assertTrue(reader.getStartHandler().getListeners().isEmpty()); reader.getStartHandler().addListener(listener); assertEquals(1, reader.getStartHandler().getListeners().size()); reader.getStartHandler().clearListeners(); assertTrue(reader.getStartHandler().getListeners().isEmpty()); }
public HttpPirasoStartHandler getStartHandler() { return startHandler; }
HttpPirasoEntryReader { public HttpPirasoStartHandler getStartHandler() { return startHandler; } }
HttpPirasoEntryReader { public HttpPirasoStartHandler getStartHandler() { return startHandler; } HttpPirasoEntryReader(HttpClient client, HttpContext context); }
HttpPirasoEntryReader { public HttpPirasoStartHandler getStartHandler() { return startHandler; } HttpPirasoEntryReader(HttpClient client, HttpContext context); void setUri(String uri); HttpPirasoStartHandler getStartHandler(); void start(); boolean isComplete(); boolean testConnection(); void stop(); }
HttpPirasoEntryReader { public HttpPirasoStartHandler getStartHandler() { return startHandler; } HttpPirasoEntryReader(HttpClient client, HttpContext context); void setUri(String uri); HttpPirasoStartHandler getStartHandler(); void start(); boolean isComplete(); boolean testConnection(); void stop();  }