hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1204097 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java
Date Sat, 19 Nov 2011 22:16:48 GMT
Author: apurtell
Date: Sat Nov 19 22:16:47 2011
New Revision: 1204097

URL: http://svn.apache.org/viewvc?rev=1204097&view=rev
Log:
HBASE-4827 TestAdmin should clean up resources after tests

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java?rev=1204097&r1=1204096&r2=1204097&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java Sat Nov 19 22:16:47
2011
@@ -49,6 +49,7 @@ import org.apache.hadoop.hbase.regionser
 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 



Mime
View raw message