public void compact(TableName tableName, boolean major) throws IOException {
    getMiniHBaseCluster().compact(tableName, major);
  }
Compact all of a table's reagion in the mini hbase cluster
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java