Package org.apache.hadoop.hbase.util
Class TestCoprocessorClassLoader
java.lang.Object
org.apache.hadoop.hbase.util.TestCoprocessorClassLoader
Test TestCoprocessorClassLoader. More tests are in TestClassLoading
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.conf.Configuration
private static final HBaseCommonTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkingLibJarName
(String jarName, String libPrefix) Test to make sure the lib jar file extracted from a coprocessor jar have the right name.void
void
void
void
private void
verifyCoprocessorClassLoader
(org.apache.hadoop.hbase.util.CoprocessorClassLoader coprocessorClassLoader, String className) Verify the coprocessorClassLoader is not null and the expected class can be loaded successfully
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
conf
-
-
Constructor Details
-
TestCoprocessorClassLoader
public TestCoprocessorClassLoader()
-
-
Method Details
-
testCleanupOldJars
- Throws:
Exception
-
testLibJarName
- Throws:
Exception
-
testRelativeLibJarName
- Throws:
Exception
-
checkingLibJarName
Test to make sure the lib jar file extracted from a coprocessor jar have the right name. Otherwise, some existing jar could be override if there are naming conflicts.- Throws:
Exception
-
testDirectoryAndWildcard
- Throws:
Exception
-
verifyCoprocessorClassLoader
private void verifyCoprocessorClassLoader(org.apache.hadoop.hbase.util.CoprocessorClassLoader coprocessorClassLoader, String className) throws ClassNotFoundException Verify the coprocessorClassLoader is not null and the expected class can be loaded successfully- Parameters:
coprocessorClassLoader
- the CoprocessorClassLoader to verifyclassName
- the expected class to be loaded by the coprocessorClassLoader- Throws:
ClassNotFoundException
- if the class, which should be loaded via the coprocessorClassLoader, does not exist
-