use of io.cdap.cdap.internal.pipeline.SynchronousPipelineFactory in project cdap by caskdata.
the class PipelineTest method testSimplePipeline.
@Test
public void testSimplePipeline() throws Exception {
PipelineFactory factory = new SynchronousPipelineFactory();
Pipeline<String> pipeline = factory.getPipeline();
pipeline.addLast(new HowStage());
pipeline.addLast(new AreStage());
pipeline.addLast(new YouStage());
String s = pipeline.execute("Hi").get();
Assert.assertTrue(s.equals("Hi, how are you"));
}
Aggregations