org.apache.hive.jdbc
Class TestJdbcDriver2

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hive.jdbc.TestJdbcDriver2
All Implemented Interfaces:
junit.framework.Test

public class TestJdbcDriver2
extends junit.framework.TestCase

TestJdbcDriver2


Constructor Summary
TestJdbcDriver2(String name)
           
 
Method Summary
protected  void resetConnection()
           
protected  void setUp()
           
protected  void setupConnection()
           
protected  void tearDown()
           
 void testBuiltInUDFCol()
          Verify selecting using builtin UDFs
 void testConnectionReset()
           
 void testDatabaseMetaData()
           
 void testDataTypes()
           
 void testDataTypes2()
           
 void testDescribeTable()
           
 void testDriverProperties()
           
 void testDuplicateColumnNameOrder()
           
 void testErrorDiag()
           
 void testErrorMessages()
           
 void testExplainStmt()
          verify 'explain ...' resultset
 void testExprCol()
          Verify selecting named expression columns
 void testImportedKeys()
          test getImportedKeys()
 void testMetaDataGetCatalogs()
           
 void testMetaDataGetColumns()
           
 void testMetaDataGetColumnsMetaData()
          Validate the Metadata for the result set of a metadata getColumns call.
 void testMetaDataGetSchemas()
           
 void testMetaDataGetTables()
           
 void testMetaDataGetTableTypes()
           
 void testOutOfBoundCols()
          Test bad args to getXXX()
 void testPostClose()
          Validate error on closed resultset
 void testPrepareStatement()
           
 void testPrimaryKeys()
          test getPrimaryKeys()
 void testProccedures()
          test testProccedures()
 void testProcCols()
          test getProcedureColumns()
 void testResultSetMetaData()
           
 void testSelectAll()
           
 void testSelectAllFetchSize()
           
 void testSelectAllMaxRows()
           
 void testSelectAllPartioned()
           
 void testSetCommand()
          validate schema generated by "set" command
 void testShowTables()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestJdbcDriver2

public TestJdbcDriver2(String name)
Method Detail

setupConnection

protected void setupConnection()
                        throws SQLException
Throws:
SQLException

resetConnection

protected void resetConnection()
                        throws SQLException
Throws:
SQLException

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testDataTypes2

public void testDataTypes2()
                    throws Exception
Throws:
Exception

testErrorDiag

public void testErrorDiag()
                   throws SQLException
Throws:
SQLException

testExplainStmt

public void testExplainStmt()
                     throws SQLException
verify 'explain ...' resultset

Throws:
SQLException

testPrepareStatement

public void testPrepareStatement()

testSelectAll

public final void testSelectAll()
                         throws Exception
Throws:
Exception

testSelectAllPartioned

public final void testSelectAllPartioned()
                                  throws Exception
Throws:
Exception

testSelectAllMaxRows

public final void testSelectAllMaxRows()
                                throws Exception
Throws:
Exception

testSelectAllFetchSize

public final void testSelectAllFetchSize()
                                  throws Exception
Throws:
Exception

testDataTypes

public void testDataTypes()
                   throws Exception
Throws:
Exception

testErrorMessages

public void testErrorMessages()
                       throws SQLException
Throws:
SQLException

testShowTables

public void testShowTables()
                    throws SQLException
Throws:
SQLException

testMetaDataGetTables

public void testMetaDataGetTables()
                           throws SQLException
Throws:
SQLException

testMetaDataGetCatalogs

public void testMetaDataGetCatalogs()
                             throws SQLException
Throws:
SQLException

testMetaDataGetSchemas

public void testMetaDataGetSchemas()
                            throws SQLException
Throws:
SQLException

testMetaDataGetTableTypes

public void testMetaDataGetTableTypes()
                               throws SQLException
Throws:
SQLException

testMetaDataGetColumns

public void testMetaDataGetColumns()
                            throws SQLException
Throws:
SQLException

testMetaDataGetColumnsMetaData

public void testMetaDataGetColumnsMetaData()
                                    throws SQLException
Validate the Metadata for the result set of a metadata getColumns call.

Throws:
SQLException

testDescribeTable

public void testDescribeTable()
                       throws SQLException
Throws:
SQLException

testConnectionReset

public void testConnectionReset()
                         throws SQLException
Throws:
SQLException

testDatabaseMetaData

public void testDatabaseMetaData()
                          throws SQLException
Throws:
SQLException

testResultSetMetaData

public void testResultSetMetaData()
                           throws SQLException
Throws:
SQLException

testDriverProperties

public void testDriverProperties()
                          throws SQLException
Throws:
SQLException

testSetCommand

public void testSetCommand()
                    throws SQLException
validate schema generated by "set" command

Throws:
SQLException

testPostClose

public void testPostClose()
                   throws SQLException
Validate error on closed resultset

Throws:
SQLException

testDuplicateColumnNameOrder

public void testDuplicateColumnNameOrder()
                                  throws SQLException
Throws:
SQLException

testOutOfBoundCols

public void testOutOfBoundCols()
                        throws SQLException
Test bad args to getXXX()

Throws:
SQLException

testBuiltInUDFCol

public void testBuiltInUDFCol()
                       throws SQLException
Verify selecting using builtin UDFs

Throws:
SQLException

testExprCol

public void testExprCol()
                 throws SQLException
Verify selecting named expression columns

Throws:
SQLException

testProcCols

public void testProcCols()
                  throws SQLException
test getProcedureColumns()

Throws:
SQLException

testProccedures

public void testProccedures()
                     throws SQLException
test testProccedures()

Throws:
SQLException

testPrimaryKeys

public void testPrimaryKeys()
                     throws SQLException
test getPrimaryKeys()

Throws:
SQLException

testImportedKeys

public void testImportedKeys()
                      throws SQLException
test getImportedKeys()

Throws:
SQLException


Copyright © 2013 The Apache Software Foundation