hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [4/4] hbase git commit: HBASE-13409 Add categories to uncategorized tests
Date Mon, 06 Apr 2015 18:58:41 GMT
HBASE-13409 Add categories to uncategorized tests


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

Branch: refs/heads/branch-1
Commit: 935352c4d819b54625fe567747bec9d31e4f3dd6
Parents: 8018ccc
Author: Andrew Purtell <apurtell@apache.org>
Authored: Mon Apr 6 11:02:18 2015 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Mon Apr 6 11:08:10 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/client/TestClientExponentialBackoff.java | 4 ++++
 .../java/org/apache/hadoop/hbase/filter/TestLongComparator.java  | 4 ++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/935352c4/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientExponentialBackoff.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientExponentialBackoff.java
b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientExponentialBackoff.java
index 3a902d0..275adc0 100644
--- a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientExponentialBackoff.java
+++ b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientExponentialBackoff.java
@@ -23,13 +23,17 @@ import org.apache.hadoop.hbase.ServerName;
 import org.apache.hadoop.hbase.client.backoff.ExponentialClientBackoffPolicy;
 import org.apache.hadoop.hbase.client.backoff.ServerStatistics;
 import org.apache.hadoop.hbase.protobuf.generated.ClientProtos;
+import org.apache.hadoop.hbase.testclassification.ClientTests;
+import org.apache.hadoop.hbase.testclassification.SmallTests;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.junit.Test;
+import org.junit.experimental.categories.Category;
 import org.mockito.Mockito;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
+@Category({ClientTests.class, SmallTests.class})
 public class TestClientExponentialBackoff {
 
   ServerName server = Mockito.mock(ServerName.class);

http://git-wip-us.apache.org/repos/asf/hbase/blob/935352c4/hbase-client/src/test/java/org/apache/hadoop/hbase/filter/TestLongComparator.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/test/java/org/apache/hadoop/hbase/filter/TestLongComparator.java
b/hbase-client/src/test/java/org/apache/hadoop/hbase/filter/TestLongComparator.java
index b003d5c..3c31c03 100644
--- a/hbase-client/src/test/java/org/apache/hadoop/hbase/filter/TestLongComparator.java
+++ b/hbase-client/src/test/java/org/apache/hadoop/hbase/filter/TestLongComparator.java
@@ -17,10 +17,14 @@
  */
 package org.apache.hadoop.hbase.filter;
 
+import org.apache.hadoop.hbase.testclassification.SmallTests;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
 import static org.junit.Assert.assertEquals;
 
+@Category(SmallTests.class)
 public class TestLongComparator {
   private long values[] = { Long.MIN_VALUE, -10000000000L, -1000000L, 0L, 1000000L, 10000000000L,
       Long.MAX_VALUE };


Mime
View raw message