HBASE-6057 Change some tests categories to optimize build time (nkeywal via JD)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1341211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2012-05-21 21:32:28 +00:00
parent 1da00e2f9b
commit 3e2afde130
19 changed files with 33 additions and 33 deletions

View File

@ -18,11 +18,11 @@ package org.apache.hadoop.hbase.io.encoding;
import static org.junit.Assert.assertEquals;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.MediumTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestBufferedDataBlockEncoder {
@Test

View File

@ -27,6 +27,7 @@ import java.util.Map;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.Put;
@ -49,7 +50,7 @@ import org.junit.runners.Parameterized.Parameters;
/**
* Tests encoded seekers by loading and reading values.
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
@RunWith(Parameterized.class)
public class TestEncodedSeekers {

View File

@ -43,8 +43,8 @@ import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.fs.HFileSystem;
import org.apache.hadoop.hbase.io.hfile.Compression.Algorithm;
import org.apache.hadoop.hbase.util.Bytes;
@ -57,7 +57,7 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestChecksum {
// change this value to activate more logs
private static final boolean detailedLogging = true;

View File

@ -46,7 +46,7 @@ import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
@RunWith(Parameterized.class)
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestFixedFileTrailer {
private static final Log LOG = LogFactory.getLog(TestFixedFileTrailer.class);

View File

@ -40,7 +40,7 @@ import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.fs.HFileSystem;
import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
import org.apache.hadoop.hbase.io.encoding.HFileBlockDefaultEncodingContext;
@ -62,7 +62,7 @@ import com.google.common.base.Preconditions;
* This class has unit tests to prove that older versions of
* HFiles (without checksums) are compatible with current readers.
*/
@Category(MediumTests.class)
@Category(SmallTests.class)
@RunWith(Parameterized.class)
public class TestHFileBlockCompatibility {
// change this value to activate more logs

View File

@ -27,7 +27,7 @@ import java.util.Collection;
import java.util.Map;
import java.util.Random;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.io.HeapSize;
import org.apache.hadoop.hbase.io.hfile.LruBlockCache.EvictionThread;
import org.apache.hadoop.hbase.regionserver.metrics.SchemaMetrics;
@ -49,7 +49,7 @@ import org.junit.runners.Parameterized.Parameters;
* and that cached blocks are accessible when expected to be.
*/
@RunWith(Parameterized.class)
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestLruBlockCache {
private Map<String, Long> startingMetrics;

View File

@ -25,9 +25,9 @@ import java.io.IOException;
import java.net.InetSocketAddress;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.hbase.MediumTests;
import org.junit.Test;
import com.google.protobuf.DescriptorProtos;
@ -36,7 +36,7 @@ import com.google.protobuf.DescriptorProtos.EnumDescriptorProto;
import org.junit.experimental.categories.Category;
/** Unit tests to test PB-based types on WritableRpcEngine. */
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestPBOnWritableRpc {
private static Configuration conf = new Configuration();

View File

@ -34,7 +34,7 @@ import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestClockSkewDetection {
private static final Log LOG =
LogFactory.getLog(TestClockSkewDetection.class);

View File

@ -47,7 +47,7 @@ import org.junit.experimental.categories.Category;
/**
* Test the load balancer that is created by default.
*/
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestDefaultLoadBalancer {
private static final Log LOG = LogFactory.getLog(TestDefaultLoadBalancer.class);

View File

@ -27,7 +27,7 @@ import java.util.Map;
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanInfo;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.metrics.MetricsContext;
import org.apache.hadoop.metrics.MetricsRecord;
import org.apache.hadoop.metrics.MetricsUtil;
@ -38,7 +38,7 @@ import org.apache.hadoop.metrics.util.MetricsTimeVaryingRate;
import junit.framework.TestCase;
import org.junit.experimental.categories.Category;
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestMetricsMBeanBase extends TestCase {
private class TestStatistics extends MetricsMBeanBase {

View File

@ -24,7 +24,7 @@ import static org.junit.Assert.*;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@ -33,7 +33,7 @@ import org.junit.experimental.categories.Category;
* Ensures that it uses no more memory than it's supposed to,
* and that it properly deals with multibyte encodings.
*/
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestMemoryBoundedLogMessageBuffer {
private static final long TEN_KB = 10 * 1024;

View File

@ -23,11 +23,11 @@ import static org.junit.Assert.*;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestTaskMonitor {
@Test

View File

@ -40,7 +40,7 @@ import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.client.Delete;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.Put;
@ -62,7 +62,7 @@ import org.mockito.stubbing.Answer;
/**
* Test compactions
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestCompaction extends HBaseTestCase {
static final Log LOG = LogFactory.getLog(TestCompaction.class.getName());
private static final HBaseTestingUtility UTIL = new HBaseTestingUtility();

View File

@ -59,7 +59,7 @@ import org.junit.experimental.categories.Category;
* Tests writing Bloom filter blocks in the same part of the file as data
* blocks.
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestCompoundBloomFilter {
private static final HBaseTestingUtility TEST_UTIL =

View File

@ -41,7 +41,7 @@ import org.junit.experimental.categories.Category;
* {@link TestGet} is a medley of tests of get all done up as a single test.
* This class
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestGetClosestAtOrBefore extends HBaseTestCase {
private static final Log LOG = LogFactory.getLog(TestGetClosestAtOrBefore.class);

View File

@ -46,7 +46,7 @@ import com.google.common.collect.Lists;
import org.junit.experimental.categories.Category;
/** memstore test case */
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestMemStore extends TestCase {
private final Log LOG = LogFactory.getLog(this.getClass());
private MemStore memstore;

View File

@ -29,7 +29,7 @@ import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@ -37,7 +37,7 @@ import org.junit.experimental.categories.Category;
/**
* Test many concurrent appenders to an {@link #HLog} while rolling the log.
*/
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestLogRollingNoCluster {
private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
private final static byte [] EMPTY_1K_ARRAY = new byte[1024];

View File

@ -28,7 +28,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
import junit.framework.Test;
import junit.framework.TestCase;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.util.PoolMap.PoolType;
import org.junit.experimental.categories.Category;
@ -37,7 +36,7 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({TestPoolMap.TestRoundRobinPoolType.class, TestPoolMap.TestThreadLocalPoolType.class, TestPoolMap.TestReusablePoolType.class})
@Category(MediumTests.class)
@Category(SmallTests.class)
public class TestPoolMap {
public abstract static class TestPoolType extends TestCase {
protected PoolMap<String, String> poolMap;
@ -75,7 +74,7 @@ public class TestPoolMap {
}
}
@Category(MediumTests.class)
@Category(SmallTests.class)
public static class TestRoundRobinPoolType extends TestPoolType {
@Override
protected PoolType getPoolType() {
@ -137,7 +136,7 @@ public class TestPoolMap {
}
@Category(MediumTests.class)
@Category(SmallTests.class)
public static class TestThreadLocalPoolType extends TestPoolType {
@Override
protected PoolType getPoolType() {
@ -182,7 +181,7 @@ public class TestPoolMap {
}
@Category(MediumTests.class)
@Category(SmallTests.class)
public static class TestReusablePoolType extends TestPoolType {
@Override
protected PoolType getPoolType() {

View File

@ -41,7 +41,7 @@ import static org.junit.Assert.*;
/**
* Test for HQuorumPeer.
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestHQuorumPeer {
private static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
private static int PORT_NO = 21818;