org.apache.hadoop.hive.jdbc
Class TestJdbcDriver

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

public class TestJdbcDriver
extends junit.framework.TestCase

TestJdbcDriver.


Constructor Summary
TestJdbcDriver(String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testConversionsBaseResultSet()
           
 void testDatabaseMetaData()
           
 void testDataTypes()
           
 void testDescribeTable()
           
 void testDriverProperties()
           
 void testErrorMessages()
           
 void testExplainStmt()
          verify 'explain ...' resultset
 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 testPrepareStatement()
           
 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

TestJdbcDriver

public TestJdbcDriver(String name)
Method Detail

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

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

testConversionsBaseResultSet

public void testConversionsBaseResultSet()
                                  throws SQLException
Throws:
SQLException

testDescribeTable

public void testDescribeTable()
                       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


Copyright © 2013 The Apache Software Foundation