org.apache.hive.beeline.src.test
Class TestBeeLineWithArgs

java.lang.Object
  extended by org.apache.hive.beeline.src.test.TestBeeLineWithArgs

public class TestBeeLineWithArgs
extends Object

TestBeeLineWithArgs - executes tests of the command-line arguments to BeeLine


Constructor Summary
TestBeeLineWithArgs()
           
 
Method Summary
static void postTests()
          Shut down a local Hive Server 2 for these tests
static void preTests()
          Start up a local Hive Server 2 for these tests
 void testBreakOnErrorScriptFile()
          Attempt to execute a simple script file with the -f option to BeeLine The first command should fail and the second command should not execute Print PASSED or FAILED
 void testHiveVarSubstitution()
           
 void testNegativeScriptFile()
          Attempt to execute a missing script file with the -f option to BeeLine Print PASSED or FAILED
 void testNPE()
          HIVE-4566
 void testPositiveScriptFile()
          Attempt to execute a simple script file with the -f option to BeeLine Test for presence of an expected pattern in the output (stdout or stderr), fail if not found Print PASSED or FAILED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBeeLineWithArgs

public TestBeeLineWithArgs()
Method Detail

preTests

public static void preTests()
                     throws Exception
Start up a local Hive Server 2 for these tests

Throws:
Exception

postTests

public static void postTests()
Shut down a local Hive Server 2 for these tests


testPositiveScriptFile

public void testPositiveScriptFile()
                            throws Throwable
Attempt to execute a simple script file with the -f option to BeeLine Test for presence of an expected pattern in the output (stdout or stderr), fail if not found Print PASSED or FAILED

Throws:
Throwable

testBreakOnErrorScriptFile

public void testBreakOnErrorScriptFile()
                                throws Throwable
Attempt to execute a simple script file with the -f option to BeeLine The first command should fail and the second command should not execute Print PASSED or FAILED

Throws:
Throwable

testNegativeScriptFile

public void testNegativeScriptFile()
                            throws Throwable
Attempt to execute a missing script file with the -f option to BeeLine Print PASSED or FAILED

Throws:
Throwable

testNPE

public void testNPE()
             throws UnsupportedEncodingException
HIVE-4566

Throws:
UnsupportedEncodingException

testHiveVarSubstitution

public void testHiveVarSubstitution()
                             throws Throwable
Throws:
Throwable


Copyright © 2012 The Apache Software Foundation