hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java
/**
   * Test read only tables
   * @throws Exception
   */
Test read only tables
@throws Exception
Test read only tables @throws Exception
@Test
  public void testReadOnlyTable() throws Exception {
    final TableName name = TableName.valueOf(this.name.getMethodName());
    Table table = TEST_UTIL.createTable(name, HConstants.CATALOG_FAMILY);
    byte[] value = Bytes.toBytes("somedata");
    Put put = new Put(value);
    put.addColumn(HConstants.CATALOG_FAMILY, HConstants.CATALOG_FAMILY, value);
    table.put(put);
    table.close();
  }
@ Test public void testReadOnlyTable ( ) throws Exception { final TableName name = TableName . valueOf ( this . name . getMethodName ( ) ) ; Table table = TEST_UTIL . createTable ( name , HConstants . CATALOG_FAMILY ) ; byte [ ] value = Bytes . toBytes ( "somedata" ) ; Put put = new Put ( value ) ; put . addColumn ( HConstants . CATALOG_FAMILY , HConstants . CATALOG_FAMILY , value ) ; table . put ( put ) ; table . close ( ) ; }
Test read only tables
 @throws Exception
Test read only tables @throws Exception
// This used to use an empty row... That must have been a bug