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
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate 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
IOExceptionpublic void testTableListXML() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testTableListJSON() throws IOException
IOExceptionpublic void testTableListPB() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testTableInfoText() throws IOException
IOExceptionpublic void testTableInfoXML() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testTableInfoJSON() throws IOException
IOExceptionpublic void testTableInfoPB() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testTableNotFound() throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.