Package org.apache.hadoop.hbase.rest
Class TestNamespacesResource
java.lang.Object
org.apache.hadoop.hbase.rest.TestNamespacesResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.rest.client.Clientprivate static org.apache.hadoop.conf.Configurationprivate static JAXBContextprivate static Stringprivate static Stringprivate static final HBaseRESTTestingUtilityprivate static final HBaseTestingUtilityprivate static TestNamespacesModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateNamespaceViaAdmin(org.apache.hadoop.hbase.client.Admin admin, String name) private booleandoesNamespaceExist(org.apache.hadoop.hbase.client.Admin admin, String namespaceName) private static org.apache.hadoop.hbase.rest.model.NamespacesModelfromXML(byte[] content) static voidstatic voidvoidvoid
-
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:
IOExceptionJAXBException
-
testNamespaceListPBandDefault
- Throws:
IOException
-