diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/MD5Hash.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/MD5Hash.java similarity index 100% rename from hbase-server/src/main/java/org/apache/hadoop/hbase/util/MD5Hash.java rename to hbase-common/src/main/java/org/apache/hadoop/hbase/util/MD5Hash.java diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestKVGenerator.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/test/LoadTestKVGenerator.java similarity index 98% rename from hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestKVGenerator.java rename to hbase-common/src/main/java/org/apache/hadoop/hbase/util/test/LoadTestKVGenerator.java index ba125a62e9a..260cbaab764 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestKVGenerator.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/test/LoadTestKVGenerator.java @@ -14,7 +14,7 @@ * License for the specific language governing permissions and limitations * under the License. */ -package org.apache.hadoop.hbase.util; +package org.apache.hadoop.hbase.util.test; import java.util.Random; diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java similarity index 99% rename from hbase-server/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java rename to hbase-common/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java index b8d4ce5f3d3..cd89f793cbd 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java @@ -34,9 +34,7 @@ import org.apache.hadoop.hbase.KeyValue.MetaComparator; import org.apache.hadoop.hbase.KeyValue.Type; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.io.WritableUtils; -import org.junit.experimental.categories.Category; -@Category(SmallTests.class) public class TestKeyValue extends TestCase { private final Log LOG = LogFactory.getLog(this.getClass().getName()); @@ -518,9 +516,5 @@ public class TestKeyValue extends TestCase { assertEquals(HConstants.LATEST_TIMESTAMP, time1); assertEquals(12345L, time2); } - - @org.junit.Rule - public org.apache.hadoop.hbase.ResourceCheckerJUnitRule cu = - new org.apache.hadoop.hbase.ResourceCheckerJUnitRule(); } diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java similarity index 94% rename from hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java rename to hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java index 43aad3b40ad..8bfed1ffb81 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestLoadTestKVGenerator.java @@ -23,11 +23,9 @@ import java.util.HashSet; import java.util.Random; import java.util.Set; -import org.apache.hadoop.hbase.SmallTests; +import org.apache.hadoop.hbase.util.test.LoadTestKVGenerator; import org.junit.Test; -import org.junit.experimental.categories.Category; -@Category(SmallTests.class) public class TestLoadTestKVGenerator { private static final int MIN_LEN = 10; diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestEncodedSeekers.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestEncodedSeekers.java index 367e72cc7f7..64bdf174059 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestEncodedSeekers.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestEncodedSeekers.java @@ -39,8 +39,8 @@ import org.apache.hadoop.hbase.io.hfile.LruBlockCache; import org.apache.hadoop.hbase.regionserver.HRegion; import org.apache.hadoop.hbase.regionserver.StoreFile.BloomType; import org.apache.hadoop.hbase.util.Bytes; -import org.apache.hadoop.hbase.util.LoadTestKVGenerator; import org.apache.hadoop.hbase.util.MultiThreadedWriter; +import org.apache.hadoop.hbase.util.test.LoadTestKVGenerator; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedReader.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedReader.java index a05a121bdb6..f585dbc5777 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedReader.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedReader.java @@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.client.Get; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.Result; +import org.apache.hadoop.hbase.util.test.LoadTestKVGenerator; /** Creates multiple threads that read and verify previously written data */ public class MultiThreadedReader extends MultiThreadedAction diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java index 4bfc2a959a1..e73bc57be8f 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/MultiThreadedWriter.java @@ -33,6 +33,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.Put; +import org.apache.hadoop.hbase.util.test.LoadTestKVGenerator; /** Creates multiple threads that write key/values into the */ public class MultiThreadedWriter extends MultiThreadedAction {