use of org.apache.hadoop.hbase.replication.ReplicationPeer 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);
}
Aggregations