View Javadoc

1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional information regarding
4    * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the License. You may obtain a
6    * copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
7    * law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
8    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
9    * for the specific language governing permissions and limitations under the License.
10   */
11  package org.apache.hadoop.hbase.namespace;
12  
13  import org.apache.hadoop.hbase.HBaseTestingUtility;
14  import org.apache.hadoop.hbase.testclassification.MediumTests;
15  import org.junit.AfterClass;
16  import org.junit.BeforeClass;
17  import org.junit.experimental.categories.Category;
18  
19  @Category(MediumTests.class)
20  public class TestZKLessNamespaceAuditor extends TestNamespaceAuditor {
21    private static final HBaseTestingUtility UTIL = new HBaseTestingUtility();
22  
23    @BeforeClass
24    public static void before() throws Exception {
25      UTIL.getConfiguration().setBoolean("hbase.assignment.usezk", false);
26      setupOnce();
27    }
28  
29    @AfterClass
30    public static void tearDown() throws Exception {
31      TestNamespaceAuditor.tearDown();
32    }
33  }