Class EnvironmentEdgeManagerTestHelper

java.lang.Object
org.apache.hadoop.hbase.util.EnvironmentEdgeManagerTestHelper

public final class EnvironmentEdgeManagerTestHelper extends Object
Used by tests to inject an edge into the manager. The intent is to minimise the use of the injectEdge method giving it default permissions, but in testing we may need to use this functionality elsewhere.
  • Constructor Details

  • Method Details

    • reset

      public static void reset()
    • injectEdge

      public static void injectEdge(org.apache.hadoop.hbase.util.EnvironmentEdge edge)
    • injectEdgeForPackage

      public static void injectEdgeForPackage(org.apache.hadoop.hbase.util.EnvironmentEdge edge, String packageName)
      Inject a EnvironmentEdge which only takes effect when calling directly from the classes in the given package.