Search in sources :

Example 1 with SynchronousPipelineFactory

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"));
}
Also used : SynchronousPipelineFactory(io.cdap.cdap.internal.pipeline.SynchronousPipelineFactory) SynchronousPipelineFactory(io.cdap.cdap.internal.pipeline.SynchronousPipelineFactory) Test(org.junit.Test)

Aggregations

SynchronousPipelineFactory (io.cdap.cdap.internal.pipeline.SynchronousPipelineFactory)1 Test (org.junit.Test)1