hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java
/**
   * Can't enable a table if the table isn't in disabled state
   */
Can't enable a table if the table isn't in disabled state
Can ' t enable a table if the table isn ' t in disabled state
@Test(expected = TableNotDisabledException.class)
  public void testTableNotDisabledExceptionWithATable() throws IOException {
    final TableName name = TableName.valueOf(this.name.getMethodName());
    try (Table t = TEST_UTIL.createTable(name, HConstants.CATALOG_FAMILY)) {
      ADMIN.enableTable(name);
    }
  }
@ Test ( expected = TableNotDisabledException . class ) public void testTableNotDisabledExceptionWithATable ( ) throws IOException { final TableName name = TableName . valueOf ( this . name . getMethodName ( ) ) ; try ( Table t = TEST_UTIL . createTable ( name , HConstants . CATALOG_FAMILY ) ) { ADMIN . enableTable ( name ) ; } }
Can't enable a table if the table isn't in disabled state
Can ' t enable a table if the table isn ' t in disabled state