public class TestBeeLineWithArgs
extends java.lang.Object
| Constructor and Description |
|---|
TestBeeLineWithArgs() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static void preTests()
throws java.lang.Exception
java.lang.Exceptionpublic static void postTests()
public void testPositiveScriptFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testBreakOnErrorScriptFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testNegativeScriptFile()
throws java.lang.Throwable
java.lang.Throwablepublic void testNPE()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void testHiveVarSubstitution()
throws java.lang.Throwable
java.lang.ThrowableCopyright © 2012 The Apache Software Foundation