public class CoprocessorValidatorTest extends Object
| Modifier and Type | Class and Description | 
|---|---|
private static class  | 
CoprocessorValidatorTest.MissingClass  | 
private static class  | 
CoprocessorValidatorTest.MissingClassClassLoader  | 
private static class  | 
CoprocessorValidatorTest.MissingClassObserver  | 
private static class  | 
CoprocessorValidatorTest.ObsoleteMethodObserver  | 
| Modifier and Type | Field and Description | 
|---|---|
static HBaseClassTestRule | 
CLASS_RULE  | 
private org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator | 
validator  | 
| Constructor and Description | 
|---|
CoprocessorValidatorTest()  | 
| Modifier and Type | Method and Description | 
|---|---|
private static ClassLoader | 
getClassLoader()  | 
private static String | 
getFullClassName(String className)  | 
void | 
testMissingClass()  | 
void | 
testNoSuchClass()  | 
void | 
testObsoleteMethod()  | 
void | 
testTableMissingJar()  | 
void | 
testTableNoSuchClass()  | 
void | 
testTableValidJar()  | 
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> | 
validateClass(ClassLoader classLoader,
             String className)  | 
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> | 
validateClass(String className)  | 
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> | 
validateTable(String jarFile,
             String className)  | 
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator validator
public CoprocessorValidatorTest()
private static ClassLoader getClassLoader()
private static String getFullClassName(String className)
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(String className)
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(ClassLoader classLoader, String className)
public void testNoSuchClass() throws IOException
IOExceptionpublic void testMissingClass() throws IOException
IOExceptionpublic void testObsoleteMethod() throws IOException
IOExceptionprivate List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateTable(String jarFile, String className) throws IOException
IOExceptionpublic void testTableNoSuchClass() throws IOException
IOExceptionpublic void testTableMissingJar() throws IOException
IOExceptionpublic void testTableValidJar() throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.