Package org.pentaho.platform.engine.services.actionsequence

Examples of org.pentaho.platform.engine.services.actionsequence.OutputDef


  public void testOutputDef() {
    startTest();
    try {
      FileOutputStream outputStream = new FileOutputStream( "c:/test.txt" ); //$NON-NLS-1$
      OutputDef outputDef1 = new OutputDef( "FirstOutputName", outputStream ); //$NON-NLS-1$
      outputDef1.setValue( "MyOutputDefinition" ); //$NON-NLS-1$
      assertEquals( outputDef1.getName(), "FirstOutputName" ); //$NON-NLS-1$
      OutputDef outputDef2 = new OutputDef( "SecondOutputName", new ArrayList() ); //$NON-NLS-1$
      assertEquals( outputDef2.getName(), "SecondOutputName" ); //$NON-NLS-1$     
      OutputDef outputDef3 = new OutputDef( "ThirdOutputName", "MyOutputType" ); //$NON-NLS-1$ //$NON-NLS-2$
      assertEquals( outputDef3.getName(), "ThirdOutputName" ); //$NON-NLS-1$

    } catch ( Exception e ) {
      e.printStackTrace();
    }
    assertTrue( true );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.services.actionsequence.OutputDef

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.