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
IOException
public void verifyReservedNS() throws IOException
IOException
public void testDeleteReservedNS() throws Exception
Exception
public void createRemoveTest() throws Exception
Exception
public void createDoubleTest() throws IOException, InterruptedException
IOException
InterruptedException
public void createTableTest() throws IOException, InterruptedException
IOException
InterruptedException
public void createTableInDefaultNamespace() throws Exception
Exception
public void createTableInSystemNamespace() throws Exception
Exception
public void testNamespaceOperations() throws IOException
IOException
private static <V,E> void runWithExpectedException(Callable<V> callable, Class<E> exceptionClass)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.