@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 } } }
@Test public void testLegalHTableNames() { for (String tn : legalTableNames) { HTableDescriptor.isLegalTableName(Bytes.toBytes(tn)); } }