You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/10/30 22:51:27 UTC
git commit: HBASE-11819 Unit test for CoprocessorHConnection (Talat
Uyarer) -- ADDENDUM testannoations fixup
Repository: hbase
Updated Branches:
refs/heads/branch-1 d719ea1db -> 49fb89f15
HBASE-11819 Unit test for CoprocessorHConnection (Talat Uyarer) -- ADDENDUM testannoations fixup
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/49fb89f1
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/49fb89f1
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/49fb89f1
Branch: refs/heads/branch-1
Commit: 49fb89f1512e0a7b89d1130a54420b91f3da0299
Parents: d719ea1
Author: stack <st...@apache.org>
Authored: Thu Oct 30 14:51:15 2014 -0700
Committer: stack <st...@apache.org>
Committed: Thu Oct 30 14:51:15 2014 -0700
----------------------------------------------------------------------
.../coprocessor/TestCoprocessorHConnection.java | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/49fb89f1/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorHConnection.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorHConnection.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorHConnection.java
index ed95d86..1b9f146 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorHConnection.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorHConnection.java
@@ -36,15 +36,14 @@ import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.regionserver.HRegion;
-import org.apache.hadoop.hbase.testclassification.CoprocessorTests;
-import org.apache.hadoop.hbase.testclassification.MediumTests;
+import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
-@Category({CoprocessorTests.class, MediumTests.class})
+@Category({MediumTests.class})
public class TestCoprocessorHConnection {
static final Log LOG = LogFactory.getLog(TestCoprocessorHConnection.class);
@@ -53,7 +52,7 @@ public class TestCoprocessorHConnection {
private static final int ROWSIZE = 20;
private static final byte[] rowSeperator1 = Bytes.toBytes(5);
private static final byte[] rowSeperator2 = Bytes.toBytes(12);
-
+
private static HBaseTestingUtility util = new HBaseTestingUtility();
private static MiniHBaseCluster cluster = null;
@@ -61,7 +60,7 @@ public class TestCoprocessorHConnection {
private HRegion region;
private ClusterConnection conn;
private CoprocessorEnvironment env;
-
+
@Override
public void start(CoprocessorEnvironment e) {
region = ((RegionCoprocessorEnvironment)e).getRegion();
@@ -71,11 +70,11 @@ public class TestCoprocessorHConnection {
public void stop(CoprocessorEnvironment e) {
region = null;
}
-
+
public byte[] getRegionStartKey() {
return region.getStartKey();
}
-
+
public Result getOnCoprocessorHConnection(TableName tableName, byte[] key)
throws IOException {
conn = CoprocessorHConnection.getConnectionForEnvironment(env);
@@ -85,7 +84,7 @@ public class TestCoprocessorHConnection {
return result;
}
}
-
+
@BeforeClass
public static void setupBeforeClass() throws Exception {
util.startMiniCluster();
@@ -145,7 +144,7 @@ public class TestCoprocessorHConnection {
// Find the start key for the region that FooCoprocessor is running on.
byte[] regionStartKey = fc.getRegionStartKey();
-
+
// Get Key Data
Get get = new Get(regionStartKey);
Result keyData = table.get(get);