public class TestCoprocessorClassLoader extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static HBaseCommonTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestCoprocessorClassLoader() |
Modifier and Type | Method and Description |
---|---|
private void |
checkingLibJarName(String jarName,
String libPrefix)
Test to make sure the lib jar file extracted from a coprocessor jar have the right name.
|
void |
testCleanupOldJars() |
void |
testDirectoryAndWildcard() |
void |
testLibJarName() |
void |
testRelativeLibJarName() |
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
|
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseCommonTestingUtility TEST_UTIL
private static final org.apache.hadoop.conf.Configuration conf
public TestCoprocessorClassLoader()
public void testCleanupOldJars() throws Exception
Exception
public void testLibJarName() throws Exception
Exception
public void testRelativeLibJarName() throws Exception
Exception
private void checkingLibJarName(String jarName, String libPrefix) throws Exception
Exception
public void testDirectoryAndWildcard() throws Exception
Exception
private void verifyCoprocessorClassLoader(org.apache.hadoop.hbase.util.CoprocessorClassLoader coprocessorClassLoader, String className) throws ClassNotFoundException
coprocessorClassLoader
- the CoprocessorClassLoader to verifyclassName
- the expected class to be loaded by the coprocessorClassLoaderClassNotFoundException
- if the class, which should be loaded via the
coprocessorClassLoader, does not existCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.