Package org.apache.hadoop.hbase.rest
Class SchemaResourceTestBase
java.lang.Object
org.apache.hadoop.hbase.rest.SchemaResourceTestBase
- Direct Known Subclasses:
TestSchemaResourceCsrfDisabled,TestSchemaResourceCsrfEnabled
@Tag("org.apache.hadoop.hbase.testclassification.RestTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class SchemaResourceTestBase
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.rest.client.Clientprivate static org.apache.hadoop.conf.Configurationprivate static javax.xml.bind.JAXBContextprotected static booleanprivate static org.apache.http.Headerprivate static final HBaseRESTTestingUtilityprivate static Stringprivate static Stringprivate static final HBaseTestingUtilprivate static TestTableSchemaModel -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TABLE1
-
TABLE2
-
TEST_UTIL
-
REST_TEST_UTIL
-
client
-
context
-
conf
-
testTableSchemaModel
-
extraHdr
-
csrfEnabled
-
-
Constructor Details
-
SchemaResourceTestBase
public SchemaResourceTestBase()
-
-
Method Details
-
initialize
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
toXML
private static byte[] toXML(org.apache.hadoop.hbase.rest.model.TableSchemaModel model) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
fromXML
private static org.apache.hadoop.hbase.rest.model.TableSchemaModel fromXML(byte[] content) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
testTableCreateAndDeleteXML
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
testTableCreateAndDeletePB
- Throws:
IOException
-