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
Modifier and TypeClassDescriptionprivate static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
injectEdge
(org.apache.hadoop.hbase.util.EnvironmentEdge edge) static void
injectEdgeForPackage
(org.apache.hadoop.hbase.util.EnvironmentEdge edge, String packageName) Inject aEnvironmentEdge
which only takes effect when calling directly from the classes in the given package.static void
reset()
-
Constructor Details
-
EnvironmentEdgeManagerTestHelper
private EnvironmentEdgeManagerTestHelper()
-
-
Method Details
-
reset
-
injectEdge
-
injectEdgeForPackage
public static void injectEdgeForPackage(org.apache.hadoop.hbase.util.EnvironmentEdge edge, String packageName) Inject aEnvironmentEdge
which only takes effect when calling directly from the classes in the given package.
-