public class TestTableResource extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rest.client.Client |
client |
private static String |
COLUMN |
private static String |
COLUMN_FAMILY |
private static JAXBContext |
context |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_REGIONS |
private static List<org.apache.hadoop.hbase.HRegionLocation> |
regionMap |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static org.apache.hadoop.hbase.TableName |
TABLE |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestTableResource() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkTableInfo(org.apache.hadoop.hbase.rest.model.TableInfoModel model) |
private static void |
checkTableList(org.apache.hadoop.hbase.rest.model.TableListModel model) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testTableInfoJSON() |
void |
testTableInfoPB() |
void |
testTableInfoText() |
void |
testTableInfoXML() |
void |
testTableListJSON() |
void |
testTableListPB() |
void |
testTableListText() |
void |
testTableListXML() |
void |
testTableNotFound() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final org.apache.hadoop.hbase.TableName TABLE
private static final String COLUMN_FAMILY
private static final String COLUMN
private static final int NUM_REGIONS
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
public TestTableResource()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static void checkTableList(org.apache.hadoop.hbase.rest.model.TableListModel model)
void checkTableInfo(org.apache.hadoop.hbase.rest.model.TableInfoModel model)
public void testTableListText() throws IOException
IOException
public void testTableListXML() throws IOException, JAXBException
IOException
JAXBException
public void testTableListJSON() throws IOException
IOException
public void testTableListPB() throws IOException, JAXBException
IOException
JAXBException
public void testTableInfoText() throws IOException
IOException
public void testTableInfoXML() throws IOException, JAXBException
IOException
JAXBException
public void testTableInfoJSON() throws IOException
IOException
public void testTableInfoPB() throws IOException, JAXBException
IOException
JAXBException
public void testTableNotFound() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.