Package org.pentaho.commons.connection

Examples of org.pentaho.commons.connection.InputStreamDataSource


  public void testInputStreamDataSource() {
    try {
      InputStream inputStream = getClass().getResourceAsStream( "/test/xml/query_without_connection.xaction" ); //$NON-NLS-1$"test/xml/departments.rule.xaction"));
      String name = "mystream"; //$NON-NLS-1$
      InputStreamDataSource is = new InputStreamDataSource( name, inputStream );

      Assert.assertEquals( inputStream, is.getInputStream() );
      Assert.assertEquals( name, is.getName() );
    } catch ( Exception e ) {
      e.printStackTrace();
    }

  }
View Full Code Here

TOP

Related Classes of org.pentaho.commons.connection.InputStreamDataSource

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.