You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zy...@apache.org on 2018/07/11 21:50:31 UTC

[4/4] hbase git commit: HBASE-20868 Fix TestCheckTestClasses on HBASE-18477

HBASE-20868 Fix TestCheckTestClasses on HBASE-18477

Signed-off-by: Ted Yu <te...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2355586d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2355586d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2355586d

Branch: refs/heads/HBASE-18477
Commit: 2355586d92cc33612790fcda94f333155007c26b
Parents: c402868
Author: Zach York <zy...@apache.org>
Authored: Mon Jul 9 22:36:30 2018 -0700
Committer: Zach York <zy...@amazon.com>
Committed: Wed Jul 11 14:49:53 2018 -0700

----------------------------------------------------------------------
 .../util/TestReadReplicaClustersTableNameUtil.java  | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2355586d/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestReadReplicaClustersTableNameUtil.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestReadReplicaClustersTableNameUtil.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestReadReplicaClustersTableNameUtil.java
index bde0202..aee03fc 100644
--- a/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestReadReplicaClustersTableNameUtil.java
+++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestReadReplicaClustersTableNameUtil.java
@@ -17,14 +17,24 @@
  */
 package org.apache.hadoop.hbase.util;
 
-import org.apache.hadoop.hbase.TableName;
-import org.junit.Test;
-
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
+import org.apache.hadoop.hbase.HBaseClassTestRule;
+import org.apache.hadoop.hbase.TableName;
+import org.apache.hadoop.hbase.testclassification.MiscTests;
+import org.apache.hadoop.hbase.testclassification.SmallTests;
+import org.junit.ClassRule;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
+@Category({MiscTests.class, SmallTests.class})
 public class TestReadReplicaClustersTableNameUtil {
 
+  @ClassRule
+  public static final HBaseClassTestRule CLASS_RULE =
+      HBaseClassTestRule.forClass(TestReadReplicaClustersTableNameUtil.class);
+
   @Test
   public void testIsMetaTableNameWithoutSuffix() {
     String metaWithSuffix = "hbase:meta_server1";