Search in sources :

Example 1 with SynchronousPipelineFactory

use of co.cask.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(co.cask.cdap.internal.pipeline.SynchronousPipelineFactory) SynchronousPipelineFactory(co.cask.cdap.internal.pipeline.SynchronousPipelineFactory) Test(org.junit.Test)

Aggregations

SynchronousPipelineFactory (co.cask.cdap.internal.pipeline.SynchronousPipelineFactory)1 Test (org.junit.Test)1