diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java index d8cd56b1a1e..356f4eb366e 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java @@ -73,11 +73,13 @@ public class TestRemoteAdmin { @Test public void testCreateAnDeleteTable() throws Exception { - assertFalse(remoteAdmin.isTableAvailable(TABLE_1)); - remoteAdmin.createTable(DESC_1); - assertTrue(remoteAdmin.isTableAvailable(TABLE_1)); - remoteAdmin.deleteTable(TABLE_1); - assertFalse(remoteAdmin.isTableAvailable(TABLE_1)); + final String tableName = "testCreateAnDeleteTable"; + HTableDescriptor htd = new HTableDescriptor(tableName); + assertFalse(remoteAdmin.isTableAvailable(tableName)); + remoteAdmin.createTable(htd); + assertTrue(remoteAdmin.isTableAvailable(tableName)); + remoteAdmin.deleteTable(tableName); + assertFalse(remoteAdmin.isTableAvailable(tableName)); } @Test @@ -135,5 +137,4 @@ public class TestRemoteAdmin { assertTrue("Table " + TABLE_2 + " was not found by get request to '/'", found); } - -} +} \ No newline at end of file