public class TestNamespace extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected static HBaseCluster |
cluster |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.HMaster |
master |
org.junit.rules.TestName |
name |
protected static int |
NUM_SLAVES_BASE |
private String |
prefix |
private static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.ZKNamespaceManager |
zkNamespaceManager |
| Constructor and Description |
|---|
TestNamespace() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeMethod() |
void |
createDoubleTest() |
void |
createRemoveTest() |
void |
createTableInDefaultNamespace() |
void |
createTableInSystemNamespace() |
void |
createTableTest() |
private static <V,E> void |
runWithExpectedException(Callable<V> callable,
Class<E> exceptionClass) |
static void |
setUp() |
static void |
tearDown() |
void |
testDeleteReservedNS() |
void |
testNamespaceOperations() |
void |
verifyReservedNS() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.master.HMaster master
protected static final int NUM_SLAVES_BASE
private static HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.client.Admin admin
protected static HBaseCluster cluster
private static org.apache.hadoop.hbase.ZKNamespaceManager zkNamespaceManager
public org.junit.rules.TestName name
public TestNamespace()
public void beforeMethod() throws IOException
IOExceptionpublic void verifyReservedNS() throws IOException
IOExceptionpublic void testDeleteReservedNS() throws Exception
Exceptionpublic void createRemoveTest() throws Exception
Exceptionpublic void createDoubleTest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void createTableTest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void createTableInDefaultNamespace() throws Exception
Exceptionpublic void createTableInSystemNamespace() throws Exception
Exceptionpublic void testNamespaceOperations() throws IOException
IOExceptionprivate static <V,E> void runWithExpectedException(Callable<V> callable, Class<E> exceptionClass)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.