Package org.apache.hadoop.hbase.rest
Class TestNamespacesResource
java.lang.Object
org.apache.hadoop.hbase.rest.TestNamespacesResource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.rest.client.Client
private static org.apache.hadoop.conf.Configuration
private static JAXBContext
private static String
private static String
private static final HBaseRESTTestingUtility
private static final HBaseTestingUtility
private static TestNamespacesModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
static void
void
void
-
Field Details
-
CLASS_RULE
-
NAMESPACE1
-
NAMESPACE2
-
TEST_UTIL
-
REST_TEST_UTIL
-
client
-
context
-
conf
-
testNamespacesModel
-
-
Constructor Details
-
TestNamespacesResource
public TestNamespacesResource()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
fromXML
private static org.apache.hadoop.hbase.rest.model.NamespacesModel fromXML(byte[] content) throws JAXBException - Throws:
JAXBException
-
doesNamespaceExist
private boolean doesNamespaceExist(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) throws IOException - Throws:
IOException
-
createNamespaceViaAdmin
private void createNamespaceViaAdmin(org.apache.hadoop.hbase.client.Admin admin, String name) throws IOException - Throws:
IOException
-
testNamespaceListXMLandJSON
- Throws:
IOException
JAXBException
-
testNamespaceListPBandDefault
- Throws:
IOException
-