@Before public void before() throws IOException { String methodName = this.name.getMethodName(); TableName tn = TableName.valueOf(methodName); ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(Bytes.toBytes(methodName)).build(); TableDescriptor td = TableDescriptorBuilder.newBuilder(tn).addColumnFamily(cfd).build(); RegionInfo ri = RegionInfoBuilder.newBuilder(tn).build(); this.rss = new MockRegionServerServices(HTU.getConfiguration()); this.region = HRegion.openHRegion(ri, td, null, HTU.getConfiguration(), this.rss, null); }
@Before public void before() throws IOException { String methodName = this.name.getMethodName(); this.rss = new MockRegionServerServices(HTU.getConfiguration()); this.rsch = new RegionServerCoprocessorHost(this.rss, HTU.getConfiguration()); }