/** * Clear all sources and sinks from the pipeline and stop all of them. */ public void stop() { clearSources(); clearSinks(); }
@Test public void clearSinks() { pipeline.addSink(sink); pipeline.clearSinks(); source.sendTestMessage(); assertFalse(sink.received); }