You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ec...@apache.org on 2014/08/01 00:08:24 UTC

[48/50] [abbrv] git commit: [HBASE-11636] Bring back test annotations.

[HBASE-11636] Bring back test annotations.


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

Branch: refs/heads/0.89-fb
Commit: 5808b33d089ce2aa01ba6e708fbbdea24637b885
Parents: cfa65f8
Author: Elliott Clark <el...@fb.com>
Authored: Thu Jul 31 14:48:50 2014 -0700
Committer: Elliott Clark <el...@fb.com>
Committed: Thu Jul 31 14:48:50 2014 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/LargeTests.java     | 38 ++++++++++++++++++++
 .../org/apache/hadoop/hbase/MediumTests.java    | 36 +++++++++++++++++++
 .../org/apache/hadoop/hbase/SmallTests.java     | 33 +++++++++++++++++
 .../org/apache/hadoop/hbase/UnstableTests.java  |  7 ++++
 4 files changed, 114 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5808b33d/src/main/java/org/apache/hadoop/hbase/LargeTests.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/hbase/LargeTests.java b/src/main/java/org/apache/hadoop/hbase/LargeTests.java
new file mode 100644
index 0000000..958ffd7
--- /dev/null
+++ b/src/main/java/org/apache/hadoop/hbase/LargeTests.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.hbase;
+
+/**
+ * Tag a test as 'large', meaning that the test class has the following
+ * characteristics:
+ *  - executed in an isolated JVM. Tests can however be executed in different
+ *    JVM on the same machine simultaneously.
+ *  - will not have to be executed by the developer before submitting a bug
+ *  - ideally, last less than 2 minutes to help parallelization
+ *
+ *  It the worst case compared to small or medium, use it only for tests that
+ *    you cannot put in the other categories
+ *
+ * @see SmallTests
+ * @see MediumTests
+ * @see IntegrationTests
+ */
+public interface LargeTests {
+}

http://git-wip-us.apache.org/repos/asf/hbase/blob/5808b33d/src/main/java/org/apache/hadoop/hbase/MediumTests.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/hbase/MediumTests.java b/src/main/java/org/apache/hadoop/hbase/MediumTests.java
new file mode 100644
index 0000000..e99f292
--- /dev/null
+++ b/src/main/java/org/apache/hadoop/hbase/MediumTests.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.hbase;
+
+/**
+ * Tag a test as 'Medium', meaning that the test class has the following
+ * characteristics:
+ *  - executed in an isolated JVM. Tests can however be executed in different
+ *    JVM on the same machine simultaneously.
+ *  - will have to be executed by the developer before submitting a bug
+ *  - ideally, last less than 1 minutes to help parallelization
+ *
+ *  Use it for tests that cannot be tagged as 'Small'.
+ *
+ * @see SmallTests
+ * @see LargeTests
+ */
+public interface MediumTests {
+}

http://git-wip-us.apache.org/repos/asf/hbase/blob/5808b33d/src/main/java/org/apache/hadoop/hbase/SmallTests.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/hbase/SmallTests.java b/src/main/java/org/apache/hadoop/hbase/SmallTests.java
new file mode 100644
index 0000000..d68a118
--- /dev/null
+++ b/src/main/java/org/apache/hadoop/hbase/SmallTests.java
@@ -0,0 +1,33 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.hbase;
+
+/**
+ * Tag a test as 'small', meaning that the test class has the following
+ * characteristics:
+ *  - can be run simultaneously with other small tests in the same JVM
+ *  - ideally, last less than 15 seconds
+ *  - does not use a cluster
+ *
+ * @see MediumTests
+ * @see LargeTests
+ */
+public interface SmallTests {
+}

http://git-wip-us.apache.org/repos/asf/hbase/blob/5808b33d/src/main/java/org/apache/hadoop/hbase/UnstableTests.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/hbase/UnstableTests.java b/src/main/java/org/apache/hadoop/hbase/UnstableTests.java
new file mode 100644
index 0000000..471ab7c
--- /dev/null
+++ b/src/main/java/org/apache/hadoop/hbase/UnstableTests.java
@@ -0,0 +1,7 @@
+package org.apache.hadoop.hbase;
+
+/**
+ * Test that is unstable.  This will not be run.
+ */
+public interface UnstableTests {
+}