hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java
/**
   * Can't disable a table if the table isn't in enabled state
   */
Can't disable a table if the table isn't in enabled state
Can ' t disable a table if the table isn ' t in enabled state
@Test (expected=TableNotEnabledException.class)
  public void testTableNotEnabledExceptionWithATable() throws IOException {
    final TableName name = TableName.valueOf(this.name.getMethodName());
    TEST_UTIL.createTable(name, HConstants.CATALOG_FAMILY).close();
    ADMIN.disableTable(name);
    ADMIN.disableTable(name);
  }
@ Test ( expected = TableNotEnabledException . class ) public void testTableNotEnabledExceptionWithATable ( ) throws IOException { final TableName name = TableName . valueOf ( this . name . getMethodName ( ) ) ; TEST_UTIL . createTable ( name , HConstants . CATALOG_FAMILY ) . close ( ) ; ADMIN . disableTable ( name ) ; ADMIN . disableTable ( name ) ; }
Can't disable a table if the table isn't in enabled state
Can ' t disable a table if the table isn ' t in enabled state