Package net.sf.pipet.test

Examples of net.sf.pipet.test.PipelineSimulator


  private void runPipeline(String file)
    throws Exception
  {
    URL url = ClassLoader.getSystemResource(file);
    assertNotNull("Test file not found: "+file, url);
    PipelineSimulator sim = PipelineSimulator.parseURL(url);
    sim.run(msgr);
  }
View Full Code Here


    throws Exception
  {
    String path = "engine/"+file;
    URL url = ClassLoader.getSystemResource(path);
    assertNotNull("Test file not found: "+path, url);
    PipelineSimulator sim = PipelineSimulator.parseURL(url);
    sim.run(messenger);
  }
View Full Code Here

  @Test
  public void testConfiguration()
    throws Exception
  {
    PipelineSimulator data = PipelineSimulator.parseURL(ClassLoader.getSystemResource(CFG_TEST), cf);

    assertEquals("Pipeline name", "test:test-pipeline", data.getModuleUri());
    assertEquals("Pipeline statuses", true, data.getStatus());
    assertEquals("Number of input streams", 2, data.getInputPipes().size());
    assertEquals("Number of output streams", 1, data.getOutputPipes().size());
    assertEquals("Input data", "input data", new String(data.getInputPipes().get("some-input")));
    assertEquals("Output data", "output data", new String(data.getOutputPipes().get("test-output")));
    assertEquals("File data", "file data", new String(data.getInputPipes().get("another-port")));
  }
View Full Code Here

 
  @Test
  public void testRun()
    throws Exception
  {
    PipelineSimulator data = PipelineSimulator.parseURL(ClassLoader.getSystemResource(CFG_TEST), cf);
    fmp.addModule("test-pipeline", new FakeModule(data));

    data.run(new OutputStreamMessenger(System.err));
  }
View Full Code Here

TOP

Related Classes of net.sf.pipet.test.PipelineSimulator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.