コード例 #1
0
 @Test
 public void testIllegalHTableNames() {
   for (String tn : illegalTableNames) {
     try {
       HTableDescriptor.isLegalTableName(Bytes.toBytes(tn));
       fail("invalid tablename " + tn + " should have failed");
     } catch (Exception e) {
       // expected
     }
   }
 }
コード例 #2
0
 @Test
 public void testLegalHTableNames() {
   for (String tn : legalTableNames) {
     HTableDescriptor.isLegalTableName(Bytes.toBytes(tn));
   }
 }