Search in sources :

Example 1 with TestNamespacesModel

use of org.apache.hadoop.hbase.rest.model.TestNamespacesModel in project hbase by apache.

the class TestNamespacesResource method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    conf = TEST_UTIL.getConfiguration();
    TEST_UTIL.startMiniCluster();
    REST_TEST_UTIL.startServletContainer(conf);
    client = new Client(new Cluster().add("localhost", REST_TEST_UTIL.getServletPort()));
    testNamespacesModel = new TestNamespacesModel();
    context = JAXBContext.newInstance(NamespacesModel.class);
}
Also used : NamespacesModel(org.apache.hadoop.hbase.rest.model.NamespacesModel) TestNamespacesModel(org.apache.hadoop.hbase.rest.model.TestNamespacesModel) Cluster(org.apache.hadoop.hbase.rest.client.Cluster) TestNamespacesModel(org.apache.hadoop.hbase.rest.model.TestNamespacesModel) Client(org.apache.hadoop.hbase.rest.client.Client) BeforeClass(org.junit.BeforeClass)

Aggregations

Client (org.apache.hadoop.hbase.rest.client.Client)1 Cluster (org.apache.hadoop.hbase.rest.client.Cluster)1 NamespacesModel (org.apache.hadoop.hbase.rest.model.NamespacesModel)1 TestNamespacesModel (org.apache.hadoop.hbase.rest.model.TestNamespacesModel)1 BeforeClass (org.junit.BeforeClass)1