|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.hadoop.hive.metastore.TestMetastoreVersion
public class TestMetastoreVersion
Field Summary | |
---|---|
protected HiveConf |
hiveConf
|
Constructor Summary | |
---|---|
TestMetastoreVersion()
|
Method Summary | |
---|---|
String |
getMetaStoreVersion()
|
void |
setMetaStoreVersion(String newVersion,
String comment)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testDefaults()
Test config defaults |
void |
testMetastoreVersion()
Test that with no verification, hive populates the schema and version correctly |
void |
testVersionMatching()
Test that with verification enabled, hive works when the correct schema is already populated |
void |
testVersionMisMatch()
Store garbage version in metastore and verify that hive fails when verification is on |
void |
testVersionRestriction()
Test schema verification property |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HiveConf hiveConf
Constructor Detail |
---|
public TestMetastoreVersion()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testDefaults()
public void testVersionRestriction() throws Exception
Exception
public void testMetastoreVersion() throws Exception
Exception
public void testVersionMatching() throws Exception
Exception
public void testVersionMisMatch() throws Exception
Exception
public String getMetaStoreVersion() throws HiveMetaException
HiveMetaException
public void setMetaStoreVersion(String newVersion, String comment) throws HiveMetaException
HiveMetaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |