public class TestNamespacesResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rest.client.Client |
client |
private static org.apache.hadoop.conf.Configuration |
conf |
private static JAXBContext |
context |
private static String |
NAMESPACE1 |
private static String |
NAMESPACE2 |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static HBaseTestingUtility |
TEST_UTIL |
private static TestNamespacesModel |
testNamespacesModel |
| Constructor and Description |
|---|
TestNamespacesResource() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createNamespaceViaAdmin(org.apache.hadoop.hbase.client.Admin admin,
String name) |
private boolean |
doesNamespaceExist(org.apache.hadoop.hbase.client.Admin admin,
String namespaceName) |
private static org.apache.hadoop.hbase.rest.model.NamespacesModel |
fromXML(byte[] content) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testNamespaceListPBandDefault() |
void |
testNamespaceListXMLandJSON() |
public static final HBaseClassTestRule CLASS_RULE
private static String NAMESPACE1
private static String NAMESPACE2
private static final HBaseTestingUtility TEST_UTIL
private static final HBaseRESTTestingUtility REST_TEST_UTIL
private static org.apache.hadoop.hbase.rest.client.Client client
private static JAXBContext context
private static org.apache.hadoop.conf.Configuration conf
private static TestNamespacesModel testNamespacesModel
public TestNamespacesResource()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate static org.apache.hadoop.hbase.rest.model.NamespacesModel fromXML(byte[] content) throws JAXBException
JAXBExceptionprivate boolean doesNamespaceExist(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) throws IOException
IOExceptionprivate void createNamespaceViaAdmin(org.apache.hadoop.hbase.client.Admin admin, String name) throws IOException
IOExceptionpublic void testNamespaceListXMLandJSON() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testNamespaceListPBandDefault() throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.