public class TestMetastoreVersion
extends junit.framework.TestCase
| Constructor and Description |
|---|
TestMetastoreVersion() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMetaStoreVersion() |
void |
setMetaStoreVersion(java.lang.String newVersion,
java.lang.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
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected HiveConf hiveConf
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testDefaults()
public void testVersionRestriction()
throws java.lang.Exception
java.lang.Exceptionpublic void testMetastoreVersion()
throws java.lang.Exception
java.lang.Exceptionpublic void testVersionMatching()
throws java.lang.Exception
java.lang.Exceptionpublic void testVersionMisMatch()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getMetaStoreVersion()
throws HiveMetaException
HiveMetaExceptionpublic void setMetaStoreVersion(java.lang.String newVersion,
java.lang.String comment)
throws HiveMetaException
HiveMetaExceptionCopyright © 2012 The Apache Software Foundation