Skip to content

Commit 4efdafe

Browse files
committed
add test rule
1 parent b2d34f5 commit 4efdafe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRestartWithEmptyWALDirectory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import java.io.IOException;
2323
import org.apache.hadoop.fs.Path;
24+
import org.apache.hadoop.hbase.HBaseClassTestRule;
2425
import org.apache.hadoop.hbase.HBaseTestingUtil;
2526
import org.apache.hadoop.hbase.HConstants;
2627
import org.apache.hadoop.hbase.TableName;
@@ -33,6 +34,7 @@
3334
import org.apache.hadoop.hbase.util.CommonFSUtils;
3435
import org.junit.AfterClass;
3536
import org.junit.BeforeClass;
37+
import org.junit.ClassRule;
3638
import org.junit.Test;
3739
import org.junit.experimental.categories.Category;
3840

@@ -43,6 +45,10 @@
4345
@Category({ MasterTests.class, MediumTests.class })
4446
public class TestRestartWithEmptyWALDirectory {
4547

48+
@ClassRule
49+
public static final HBaseClassTestRule CLASS_RULE =
50+
HBaseClassTestRule.forClass(TestRestartWithEmptyWALDirectory.class);
51+
4652
private static final HBaseTestingUtil UTIL = new HBaseTestingUtil();
4753

4854
private static TableName NAME = TableName.valueOf("test");

0 commit comments

Comments
 (0)