Package cascading.lingual.shell

Examples of cascading.lingual.shell.Shell


  protected void shellSQL( boolean expectedResult, String sql ) throws IOException
    {
    String[] args = new String[]{"--verbose", "debug", "--sql", "-", "--platform", getPlatformName(),
                                 "--resultPath", getResultPath()};
    Shell shell = createShell( new ByteArrayInputStream( sql.concat( "\n" ).getBytes() ) );
    boolean result = shell.execute( args );
    assertEquals( "'" + sql + "' returned incorrect status", expectedResult, result );
    }
View Full Code Here


    }

  private Shell createShell( InputStream inputStream )
    {
    Properties platformProperties = getPlatformProperties();
    return new Shell( inputStream, System.out, System.err, platformProperties );
    }
View Full Code Here

TOP

Related Classes of cascading.lingual.shell.Shell

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.