org.apache.hadoop.hive.ql.history
Class TestHiveHistory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.ql.history.TestHiveHistory
All Implemented Interfaces:
junit.framework.Test

public class TestHiveHistory
extends junit.framework.TestCase

TestHiveHistory.


Constructor Summary
TestHiveHistory()
           
 
Method Summary
protected  void setUp()
           
 void testHiveHistoryConfigDisabled()
          Check if HiveHistory class is a Proxy class when hive history is disabled
 void testHiveHistoryConfigEnabled()
          Check if HiveHistoryImpl class is returned when hive history is enabled
 void testQueryloglocParentDirNotExist()
           
 void testSimpleQuery()
          Check history file output for this query.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHiveHistory

public TestHiveHistory()
Method Detail

setUp

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

testSimpleQuery

public void testSimpleQuery()
Check history file output for this query.


testQueryloglocParentDirNotExist

public void testQueryloglocParentDirNotExist()
                                      throws Exception
Throws:
Exception

testHiveHistoryConfigEnabled

public void testHiveHistoryConfigEnabled()
                                  throws Exception
Check if HiveHistoryImpl class is returned when hive history is enabled

Throws:
Exception

testHiveHistoryConfigDisabled

public void testHiveHistoryConfigDisabled()
                                   throws Exception
Check if HiveHistory class is a Proxy class when hive history is disabled

Throws:
Exception


Copyright © 2012 The Apache Software Foundation