Search in sources :

Example 1 with Context

use of org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context in project hbase by apache.

the class TestHBaseInterClusterReplicationEndpointFilterEdits method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    UTIL.startMiniCluster();
    ReplicationPeer replicationPeer = mock(ReplicationPeer.class);
    ReplicationPeerConfig rpc = mock(ReplicationPeerConfig.class);
    when(rpc.isSerial()).thenReturn(false);
    when(replicationPeer.getPeerConfig()).thenReturn(rpc);
    Context context = new Context(null, UTIL.getConfiguration(), UTIL.getConfiguration(), null, null, null, replicationPeer, null, null, null);
    endpoint = new HBaseInterClusterReplicationEndpoint();
    endpoint.init(context);
    UTIL.createTable(TABLE1, FAMILY);
}
Also used : Context(org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context) ReplicationPeerConfig(org.apache.hadoop.hbase.replication.ReplicationPeerConfig) ReplicationPeer(org.apache.hadoop.hbase.replication.ReplicationPeer) BeforeClass(org.junit.BeforeClass)

Aggregations

Context (org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context)1 ReplicationPeer (org.apache.hadoop.hbase.replication.ReplicationPeer)1 ReplicationPeerConfig (org.apache.hadoop.hbase.replication.ReplicationPeerConfig)1 BeforeClass (org.junit.BeforeClass)1