diff --git a/hbase-spark/pom.xml b/hbase-spark/pom.xml index 8110629cad9..0af80ba4c6c 100644 --- a/hbase-spark/pom.xml +++ b/hbase-spark/pom.xml @@ -40,6 +40,7 @@ 1.3.0 2.10.4 2.10 + true ${project.basedir}/.. @@ -329,6 +330,14 @@ ${project.version} + + org.apache.hbase + hbase-annotations + ${project.version} + test-jar + test + + org.apache.hbase hbase-hadoop-compat @@ -507,7 +516,6 @@ - src/test/scala org.apache.maven.plugins diff --git a/hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/JavaHBaseContextSuite.java b/hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/TestJavaHBaseContext.java similarity index 96% rename from hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/JavaHBaseContextSuite.java rename to hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/TestJavaHBaseContext.java index f19ad10200e..724ac3633db 100644 --- a/hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/JavaHBaseContextSuite.java +++ b/hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/TestJavaHBaseContext.java @@ -39,19 +39,23 @@ import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.spark.example.hbasecontext.JavaHBaseBulkDeleteExample; +import org.apache.hadoop.hbase.testclassification.MediumTests; +import org.apache.hadoop.hbase.testclassification.MiscTests; import org.apache.hadoop.hbase.util.Bytes; import org.apache.spark.api.java.*; import org.apache.spark.api.java.function.Function; import org.junit.*; +import org.junit.experimental.categories.Category; import scala.Tuple2; import com.google.common.io.Files; -public class JavaHBaseContextSuite implements Serializable { +@Category({MiscTests.class, MediumTests.class}) +public class TestJavaHBaseContext implements Serializable { private transient JavaSparkContext jsc; HBaseTestingUtility htu; - protected static final Log LOG = LogFactory.getLog(JavaHBaseContextSuite.class); + protected static final Log LOG = LogFactory.getLog(TestJavaHBaseContext.class); byte[] tableName = Bytes.toBytes("t1");