Package org.apache.hadoop.hbase.util
Class EnvironmentEdgeManagerTestHelper
java.lang.Object
org.apache.hadoop.hbase.util.EnvironmentEdgeManagerTestHelper
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinjectEdge(org.apache.hadoop.hbase.util.EnvironmentEdge edge) static voidinjectEdgeForPackage(org.apache.hadoop.hbase.util.EnvironmentEdge edge, String packageName) Inject aEnvironmentEdgewhich only takes effect when calling directly from the classes in the given package.static voidreset()
-
Constructor Details
-
EnvironmentEdgeManagerTestHelper
private EnvironmentEdgeManagerTestHelper()
-
-
Method Details
-
reset
-
injectEdge
-
injectEdgeForPackage
public static void injectEdgeForPackage(org.apache.hadoop.hbase.util.EnvironmentEdge edge, String packageName) Inject aEnvironmentEdgewhich only takes effect when calling directly from the classes in the given package.
-