public class TestSchemaResource 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 boolean |
csrfEnabled |
private static org.apache.http.Header |
extraHdr |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static String |
TABLE1 |
private static String |
TABLE2 |
private static HBaseTestingUtility |
TEST_UTIL |
private static TestTableSchemaModel |
testTableSchemaModel |
Constructor and Description |
---|
TestSchemaResource(Boolean csrf) |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.rest.model.TableSchemaModel |
fromXML(byte[] content) |
static Collection<Object[]> |
parameters() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testTableCreateAndDeletePB() |
void |
testTableCreateAndDeleteXML() |
private static byte[] |
toXML(org.apache.hadoop.hbase.rest.model.TableSchemaModel model) |
public static final HBaseClassTestRule CLASS_RULE
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 TestTableSchemaModel testTableSchemaModel
private static org.apache.http.Header extraHdr
private static boolean csrfEnabled
public TestSchemaResource(Boolean csrf)
public static Collection<Object[]> parameters()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static byte[] toXML(org.apache.hadoop.hbase.rest.model.TableSchemaModel model) throws JAXBException
JAXBException
private static org.apache.hadoop.hbase.rest.model.TableSchemaModel fromXML(byte[] content) throws JAXBException
JAXBException
public void testTableCreateAndDeleteXML() throws IOException, JAXBException
IOException
JAXBException
public void testTableCreateAndDeletePB() throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.