org.apache.hadoop.hive.metastore
Class MetaStoreTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.metastore.MetaStoreTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestAlter, TestCreateDB, TestDBGetName, TestDrop, TestGetDBs, TestGetSchema, TestGetTable, TestGetTables, TestPartitions, TestTableExists, TestTablePath, TestTruncate

public class MetaStoreTestBase
extends junit.framework.TestCase


Field Summary
protected static org.apache.hadoop.conf.Configuration conf_
          Set things up - create mini dfs cluster and mount the fuse filesystem.
protected static org.apache.hadoop.fs.FileSystem fileSys_
           
protected static File msRoot_
           
protected static org.apache.hadoop.fs.Path whRoot_
           
 
Constructor Summary
MetaStoreTestBase()
           
 
Method Summary
 void cleanup()
           
 void createDB(String db)
           
static Properties createSchema(String db, String name)
           
 void createTable(String db, String name)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conf_

protected static final org.apache.hadoop.conf.Configuration conf_
Set things up - create mini dfs cluster and mount the fuse filesystem.


whRoot_

protected static final org.apache.hadoop.fs.Path whRoot_

msRoot_

protected static final File msRoot_

fileSys_

protected static final org.apache.hadoop.fs.FileSystem fileSys_
Constructor Detail

MetaStoreTestBase

public MetaStoreTestBase()
                  throws Exception
Throws:
Exception
Method Detail

createDB

public void createDB(String db)
              throws Exception
Throws:
Exception

cleanup

public void cleanup()
             throws Exception
Throws:
Exception

createSchema

public static Properties createSchema(String db,
                                      String name)
                               throws Exception
Throws:
Exception

createTable

public void createTable(String db,
                        String name)
                 throws Exception
Throws:
Exception


Copyright © 2009 The Apache Software Foundation