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
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static org.apache.hadoop.hbase.rest.model.NamespacesModel fromXML(byte[] content) throws JAXBException
JAXBException
private boolean doesNamespaceExist(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) throws IOException
IOException
private void createNamespaceViaAdmin(org.apache.hadoop.hbase.client.Admin admin, String name) throws IOException
IOException
public void testNamespaceListXMLandJSON() throws IOException, JAXBException
IOException
JAXBException
public void testNamespaceListPBandDefault() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.