use of com.airhacks.enhydrator.flexpipe.Pipeline in project enhydrator by AdamBien.
the class PumpIT method usePipelineWithSink.
@Test
public void usePipelineWithSink() {
CoffeeTestFixture.insertCoffee("arabica", 2, "hawai", Roast.LIGHT, "nice", "whole");
CoffeeTestFixture.insertCoffee("niceone", 3, "russia", Roast.MEDIUM, "awful", "java beans");
Pipeline pipeline = PipelineTest.getJDBCPipeline();
Pump pump = new Pump.Engine().flowListener(l -> System.out.println(l)).use(pipeline).build();
pump.start();
}
use of com.airhacks.enhydrator.flexpipe.Pipeline in project enhydrator by AdamBien.
the class PumpIT method usePipeline.
@Test
public void usePipeline() {
Pipeline pipeline = PipelineTest.getCSVPipeline();
NamedSink consumer = getMockedSink();
Pump pump = new Pump.Engine().flowListener(l -> System.out.println(l)).use(pipeline).to(consumer).build();
pump.start();
verify(consumer, times(4)).processRow(any(Row.class));
}
Aggregations