HBASE-4827 TestAdmin should clean up resources after tests

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1204097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2011-11-19 22:16:47 +00:00
parent 72c3a34146
commit 35981f50f9
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,7 @@ import org.apache.hadoop.hbase.regionserver.HRegionServer;
import org.apache.hadoop.hbase.regionserver.wal.HLogUtilsForTests;
import org.apache.hadoop.hbase.InvalidFamilyOperationException;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
@ -88,6 +89,11 @@ public class TestAdmin {
this.admin = new HBaseAdmin(TEST_UTIL.getConfiguration());
}
@After
public void tearDown() throws Exception {
this.admin.close();
}
@Test
public void testDeleteEditUnknownColumnFamilyAndOrTable() throws IOException {
// Test we get exception if we try to